Back to project page circular-progress-button.
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.
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; } } }