Android Open Source - AndroidGridListViewDraggingAnimation Main Activity






From Project

Back to project page AndroidGridListViewDraggingAnimation.

License

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.

Java Source Code

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




Java Source Code List

com.example.android.listviewdragginganimation.Cheeses.java
com.example.android.listviewdragginganimation.DraggableAdapter.java
com.example.android.listviewdragginganimation.DynamicGridView.java
com.example.android.listviewdragginganimation.DynamicListView.java
com.example.android.listviewdragginganimation.GridViewDraggingAnimationActivity.java
com.example.android.listviewdragginganimation.ListViewDraggingAnimationActivity.java
com.example.android.listviewdragginganimation.MainActivity.java
com.example.android.listviewdragginganimation.StableArrayAdapter.java