Tôi muốn tạo hoạt ảnh cho văn bản như trên Sân bay mà bảng lịch bay thực hiện. Rớt từ trên xuống và thay đổi văn bản trên đó. Đây là hình ảnh. Vì vậy, khi tôi bấm vào nút văn bản trên hình ảnh sẽ thay đổi với các hình ảnh động nói. Liệu nó có thể với android?Hoạt ảnh tùy chỉnh của Android như bảng lịch bay của sân bay
hãy hướng dẫn cho tôi làm thế nào tôi có thể đạt được loại hoạt hình trong android?
EDIT:
<?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>
My Hoạt động Class:
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();
}
Bây giờ Làm thế nào để đặt văn bản động theo chiều dọc trên hình ảnh này để nó trông giống như hình ảnh động mà tôi muốn tạo?
Cảm ơn, AndroidVogue
Bạn đã cho tôi một công việc tuyệt vời để làm :) – ingsaurabh
@ingsaurabh, Vâng. Tôi muốn thực hiện nó cho dự án nhỏ của tôi. –
@AndroidVogue Bạn có nghĩa là Giống như HTC Mobile có Đồng hồ kỹ thuật số có. – Herry