Saturday, November 17, 2012

Animation for Listview in Android

Animation for ListView
Below i wrote the code for Animation for Listview.
While display list of data it will appear one by one.
I hope it will useful for you.
Source Code

   AnimationSet set = new AnimationSet(true);
   Animation animation = new AlphaAnimation(0.0f, 1.0f);
   Bundle bundle = getIntent().getExtras();
   queryName = bundle.getString("qoueryname");
   textName = bundle.getString("textname");  
   LayoutAnimationController controller = new LayoutAnimationController(
    set, 0.5f);
   ListView listView = (ListView)findViewById(;

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...