Back to project page AndroidGridListViewDraggingAnimation.
The source code is released under:
Apache License
If you think the Android project AndroidGridListViewDraggingAnimation listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.android.listviewdragginganimation; /*from w w w . j a v a 2 s. c o m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class MainActivity extends Activity implements View.OnClickListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); findViewById(R.id.button_list).setOnClickListener(this); findViewById(R.id.button_grid).setOnClickListener(this); } @Override public void onClick(View v) { final int id = v.getId(); switch (id) { case R.id.button_list: startActivity(new Intent(this, ListViewDraggingAnimationActivity.class)); return; case R.id.button_grid: startActivity(new Intent(this, GridViewDraggingAnimationActivity.class)); return; default: throw new RuntimeException("Unknown view id: " + id); } } }