Android Open Source - circular-progress-button Main Activity






From Project

Back to project page circular-progress-button.

License

The source code is released under:

MIT License

If you think the Android project circular-progress-button 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.dd.sample;
// ww w  . j  a v  a2s. c  o m
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class MainActivity extends ListActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        String[] items = getResources().getStringArray(R.array.sample_list);

        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);
        setListAdapter(adapter);
    }

    @Override
    protected void onListItemClick(ListView l, View v, int position, long id) {
        switch (position) {
            case 0:
                Sample1Activity.startThisActivity(this);
                break;
            case 1:
                Sample2Activity.startThisActivity(this);
                break;
            case 2:
                Sample3Activity.startThisActivity(this);
                break;
            case 3:
                Sample4Activity.startThisActivity(this);
                break;
            case 4:
                Sample5Activity.startThisActivity(this);
                break;
        }
    }
}




Java Source Code List

com.dd.CircularAnimatedDrawable.java
com.dd.CircularProgressButton.java
com.dd.CircularProgressDrawable.java
com.dd.MorphingAnimation.java
com.dd.OnAnimationEndListener.java
com.dd.StateManager.java
com.dd.StrokeGradientDrawable.java
com.dd.sample.MainActivity.java
com.dd.sample.Sample1Activity.java
com.dd.sample.Sample2Activity.java
com.dd.sample.Sample3Activity.java
com.dd.sample.Sample4Activity.java
com.dd.sample.Sample5Activity.java