Android custom animations, such as airport schedule fees

I want to create an animation for text, for example, at the airport. Drop on top and change the text on it. Here is the image. Therefore, when I click the button, the text in the image should change with the specified animation. Is this possible with android?

enter image description here

Tell me how can I achieve such an animation in 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 activity 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(); } 

enter image description hereenter image description hereenter image description hereenter image description hereenter image description hereenter image description here

Now, how do I place vertically animated text on these images so that it looks like the animation I wanted to create?

Thanks AndroidVogue

+7
source share
2 answers

I have a working library. Originally developed by someone else, but I provided support for the version with Froyo . Hope this helps you.

Abhanflipview

Ref:

Library Designed by: Emil Schรถlander Animations Created by: Jake Wharton

UPDATE

It has a document called HowTo.txt that shows how to integrate.

Thanks.

0
source

This is not exactly what you want, but there is a good 3-part tutorial from Kevin Dion that starts here to create a custom odometer widget that looks something like what you want. This should help you get started.

To get the effect of the upper half of the letters falling (if that is what you want), you can fake it by drawing a letter in a buffer image and then scaling the vertical length of the letter to get an angle effect.

+1
source

All Articles