
package com.example.animtest;

import com.test4android.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class MainActivity extends Activity {

    private ListView listView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.animate_activity_main);
        listView = (ListView) findViewById(R.id.listView1);
        listView.setAdapter(new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, new String[] {
                        "AnimateLayoutChanges(动态增加子view)", "AnimateFreeFall(自由落体，抛物线运动)",
                        "AnimateMoveInSecond(alpha)", "AnimateMultiple(trans and scale)",
                        "AnimateLayoutTransition(动态增加删除子view动画)",
                        "AnimateLayoutAnimation(layout 出场动画)"
                }));
        listView.setOnItemClickListener(new OnItemClickListener() {

            @Override
            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
                    long arg3) {
                switch (arg2) {
                    case 0:
                        startActivity(new Intent(MainActivity.this,
                                AnimateLayoutChanges.class));
                        break;
                    case 1:
                        startActivity(new Intent(MainActivity.this,
                                AnimateFreeFall.class));
                        break;
                    case 2:
                        startActivity(new Intent(MainActivity.this,
                                AnimateMoveInSecond.class));
                        break;
                    case 3:
                        startActivity(new Intent(MainActivity.this,
                                AnimateMultiple.class));
                        break;
                    case 4:
                        startActivity(new Intent(MainActivity.this,
                                AnimateLayoutTransition.class));
                        break;
                    case 5:
                        startActivity(new Intent(MainActivity.this,
                                AnimateLayoutAnimation.class));
                        break;
                    default:
                        break;
                }

            }
        });
    }
}

@@ -324,16 +324,89 @@
 tView;%0A%0A
+/**%0A * from http://blog.csdn.net/eclipsexys/article/details/38401641%0A */%0A
 public c

add from for animate