Back to project page MaterialNavigationDrawer.
The source code is released under:
Apache License
If you think the Android project MaterialNavigationDrawer 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 it.neokree.example.mockedFragments; //www .jav a 2 s . c om import android.os.Bundle; import android.support.v4.app.ListFragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import java.util.ArrayList; /** * Created by neokree on 11/01/15. */ public class FragmentList extends ListFragment{ ArrayList<String> list; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { list = new ArrayList<>(); for (int i = 0;i< 50 ;i++) { list.add("Item "+ (i+1)); } setListAdapter(new ArrayAdapter<String>(this.getActivity(), android.R.layout.simple_list_item_1, list)); return super.onCreateView(inflater, container, savedInstanceState); } @Override public void onResume() { super.onResume(); } }