ListView Bottom to Top Animation in Android.

By | May 10, 2013

Like my previous posts animation chapter is again continued. This time the animation in on a ListView from Bottom to Top.
You have already seen animations from Top to Bottom in my previous posts.
See some of my posts here.

All animation posts from CoderzHeaven is here

Bottom Top animation

Click on the download link at the bottom to download the source code.

So We will start

Like my other examples for this animation also we need two XML files one which extends the “layoutAnimation” class
Here is how it looks

<?xml version="1.0" encoding="utf-8"?>
<layoutAnimation xmlns:android=""
        android:animation="@anim/slide_right" />

Now the animation for Sliding to right.
After applying this animation the View will slide from right side of the screen.

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android=""
    android:interpolator="@android:anim/accelerate_interpolator" >

        android:toXDelta="0" />


Our animation XML files are complete.
Now we will apply this in the layout.

<ListView xmlns:android=""
    android:layoutAnimation="@anim/layout_bottom_to_top_slide" />

Now just set this layout as the content of your activity. You can see the animation.
Just like this

package com.example.reverseanimationlistviews;

import android.os.Bundle;
import android.widget.ArrayAdapter;

public class MainActivity extends ListActivity {

	protected void onCreate(Bundle savedInstanceState) {
		setListAdapter(new ArrayAdapter<String>(this,
				android.R.layout.simple_list_item_1, mStrings));

	private String[] mStrings = { "CoderzHeaven", "Android", "Google", "iPhone",
			"Windows Phone", "Samsung", "Sony" };

Note : Changing the delay in the XML, you can change the speed of the animation.

Download the complete Android source code from here.

4 thoughts on “ListView Bottom to Top Animation in Android.

  1. Pingback: How to create a List with Alphabet Overlay in Android

  2. Pingback: Wave Scale Animation in GridViews in Android | Free Tools Successful Bloggers Are Using

  3. Pingback: How to create animation by default in a GrdiView in Android? | All Things Gadget

Leave a Reply

Your email address will not be published. Required fields are marked *