Code example for ListFragment

0
import com.uwetrottmann.seriesguide.R; 
 
/** 
 * Displays a menu to allow quick navigation within the app. 
 */ 
public class SlidingMenuFragment extends ListFragment {
 
    private MenuAdapter mAdapter;
 
    private SharedPreferences mPrefs;
 
    private static final int MENU_ITEM_SHOWS_ID = 0;
    private static final int MENU_ITEM_LISTS_ID = 1;
    private static final int MENU_ITEM_ACTIVITY_ID = 3;
    private static final int MENU_ITEM_SEARCH_ID = 4;
    private static final int MENU_ITEM_MOVIES_ID = 5;
    private static final int MENU_ITEM_STATS_ID = 6;
 
    private static final int PAGE_SHOWS = 0;
    private static final int PAGE_LISTS = 1;
    private static final int PAGE_ACTIVITY = 2;