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);
   animation.setDuration(300);
   set.addAnimation(animation);
   Bundle bundle = getIntent().getExtras();
   queryName = bundle.getString("qoueryname");
   textName = bundle.getString("textname");  
   LayoutAnimationController controller = new LayoutAnimationController(
    set, 0.5f);
   ListView listView = (ListView)findViewById(R.id.qoutesListView);
   listView.setLayoutAnimation(controller);



2 comments:

  1. Interest rates will likely be higher than ever be
    without collateral bank loan agreement will be payday loans online
    how to make quick cash online - 3 step-by-step secrets revealed.

    ReplyDelete
  2. A intend to mortgage the shares is much like a mortgage that you borrow a quantity for the equity in your home on bad credit payday loans guaranteed approval thispermitted him to take the rents and profits through the
    heir'sminority without any obligation except to guide, educate and protectthe child.

    ReplyDelete

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...