Back to project page voicr.
The source code is released under:
MIT License
If you think the Android project voicr 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 info.androidhive.slidingmenu; //from w w w .jav a2s . com import android.app.ListFragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; public class NotesList extends ListFragment { String[] countries = new String[] { "India", "Pakistan", "Sri Lanka", "China", "Bangladesh", "Nepal", "Afghanistan", "North Korea", "South Korea", "Japan" }; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { /** Creating an array adapter to store the list of countries **/ ArrayAdapter<String> adapter = new ArrayAdapter<String>(inflater.getContext(), android.R.layout.simple_list_item_1,countries); /** Setting the list adapter for the ListFragment */ setListAdapter(adapter); return super.onCreateView(inflater, container, savedInstanceState); } }