Mobile Computing Systems
Animation x = AnimationUtils.loadAnimation
Download 10.9 Kb.
|
- Bu sahifa navigatsiya:
- 3. Drawable Animation
- Code Practice
- 2D Drawing
Animation x = AnimationUtils.loadAnimation(
getApplicationContext(), R.anim.abovexmlfile ); someView.startAnimation(x); 3. Drawable Animation
3. Drawable Animation
xml version="1.0" encoding="utf-8"?> <animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot=“false"> <item android:drawable="@drawable/pic1" android:duration=“1000" /> <item android:drawable="@drawable/pic2" android:duration=“1000" /> <item android:drawable="@drawable/pic1" android:duration=“1000" /> <item android:drawable="@drawable/pic2" android:duration=“1000" /> animation-list> someImgView.setBackgroundResource(R.drawable.abovexml); ((AnimationDrawable)someImgView.getBackground()).start(); Code Practice:
Graphics Overview
Bitmap drawRect() drawRect() drawCircle() … Canvas 2D Drawing
1. Using Drawables
res/drawable/Queen.png Four ButtonViews res/drawable/tfade.xml Download 10.9 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling