Android Listview Refresh animation?

Maybe you can attach an animation to your ListView, since ListView extends ViewGroup you can do it, read the LayoutAnimationController on android reference: developer.android.com/reference/android/... cheers.

Here is the code I tried and worked well for me.... /* Setting up Animation */ AnimationSet set = new AnimationSet(true); Animation animation = new AlphaAnimation(0.0f, 1.0f); animation. SetDuration(400); set. AddAnimation(animation); animation = new TranslateAnimation( Animation.

RELATIVE_TO_SELF, 0.0f, Animation. RELATIVE_TO_SELF, 0.0f, Animation. RELATIVE_TO_SELF, -1.0f, Animation.

RELATIVE_TO_SELF, 0.0f ); animation. SetDuration(400); set. AddAnimation(animation); LayoutAnimationController controller = new LayoutAnimationController(set, 0.25f); parent.

SetLayoutAnimation(controller); /* Animation code ends.

I have simple ListView that displays data from database. Every after 1 min data are getting refresh automatically. I have created ListView i.e.

DataView and dataAdapter that simply extends baseAdapter. UpdateDataList is simply get data from database and creates an arrayList. And Adapter notifies view to refresh the Data.

Everything is working perfect. Now one thing I am trying to do here is when data refresh I need to add some kind of animation so that it becomes eyecaching. And people mark that something happened.

Similar to iPhone application.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions