Back to project page RevealLayout.
The source code is released under:
Apache License
If you think the Android project RevealLayout 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 me.yugy.github.reveallayout; //from w ww . ja v a2s .c om import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; /** * Created by yugy on 14/11/21. */ public class MainActivity extends ListActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String[] entries = new String[]{ "SingleChildActivity", "MultiChildActivity", "FragmentActivity" }; setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, entries)); getListView().setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { switch (position) { case 0: startActivity(new Intent(MainActivity.this, SingleChildActivity.class)); break; case 1: startActivity(new Intent(MainActivity.this, MultiChildActivity.class)); break; case 2: startActivity(new Intent(MainActivity.this, FragmentSampleActivity.class)); break; } } }); } }