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
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);