जैसे एंड्रॉइड कस्टम एनीमेशन मैं एयरपोर्ट फ्लाइट शेड्यूल बोर्ड पर टेक्स्ट के लिए एनीमेशन बनाना चाहता हूं। शीर्ष से गिरना और उस पर पाठ बदलें। छवि यहाँ है। तो जब मैं बटन पर क्लिक करता हूं तो छवि पर टेक्स्ट को एनीमेशन के साथ बदलना चाहिए। एंड्रॉइड के साथ यह संभव है?एयरपोर्ट शेड्यूल बोर्ड
कृपया मुझे गाइड कैसे मैं एंड्रॉयड में एनीमेशन के इस प्रकार प्राप्त कर सकते हैं?
संपादित करें:
<?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/clockbg1" android:duration="150" />
<item android:drawable="@drawable/clockbg2" android:duration="150" />
<item android:drawable="@drawable/clockbg3" android:duration="150" />
<item android:drawable="@drawable/clockbg4" android:duration="150" />
<item android:drawable="@drawable/clockbg5" android:duration="150" />
<item android:drawable="@drawable/clockbg6" android:duration="150" />
</animation-list>
मेरी गतिविधि वर्ग:
public class XMLAnimation extends Activity {
private static AnimationDrawable animation;
private ImageView refresh;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
refresh = (ImageView) findViewById(R.id.simple_anim);
refresh.setBackgroundResource(R.drawable.loader_animation);
animation = (AnimationDrawable) refresh.getBackground();
}
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
animation.start();
}
अब इस छवियों पर लंबवत एनिमेटेड टेक्स्ट कैसे रखें, ऐसा लगता है कि मैं जिस एनीमेशन को बनाना चाहता हूं?
धन्यवाद, AndroidVogue
आपने मुझे करने के लिए एक अच्छा काम दिया :) – ingsaurabh
@ingsaurabh, हाँ यह है। मैं इसे अपनी छोटी परियोजना के लिए लागू करना चाहता हूं। –
@AndroidVogue क्या आपका मतलब है एचटीसी मोबाइल की तरह डिजिटल घड़ी है। – Herry