Back to project page android-fb-like-slideout-navigation.
The source code is released under:
Apache License
If you think the Android project android-fb-like-slideout-navigation 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.korovyansk.android.sample.slideout; //from ww w . j a v a2 s .co m import android.os.Bundle; import android.support.v4.app.ListFragment; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; public class MenuFragment extends ListFragment { @Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); setListAdapter(new ArrayAdapter<String>(getActivity(), android.R.layout.simple_list_item_1, new String[] { " First", " Second", " Third", " Fourth", " Fifth", " Sixth"})); getListView().setCacheColorHint(0); } @Override public void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); ((MenuActivity)getActivity()).getSlideoutHelper().close(); } }