Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- // Add Drawer Item to dataList
- dataList.add(new DrawerItem(true)); // adding a spinner to the list
- dataList.add(new DrawerItem("My Favorites")); // adding a header to the list
- dataList.add(new DrawerItem("Message", R.drawable.ic_action_email));
- dataList.add(new DrawerItem("Likes", R.drawable.ic_action_good));
- dataList.add(new DrawerItem("Games", R.drawable.ic_action_gamepad));
- dataList.add(new DrawerItem("Lables", R.drawable.ic_action_labels));
- dataList.add(new DrawerItem("Main Options"));// adding a header to the list
- dataList.add(new DrawerItem("Search", R.drawable.ic_action_search));
- dataList.add(new DrawerItem("Cloud", R.drawable.ic_action_cloud));
- dataList.add(new DrawerItem("Camara", R.drawable.ic_action_camera));
- dataList.add(new DrawerItem("Video", R.drawable.ic_action_video));
- dataList.add(new DrawerItem("Groups", R.drawable.ic_action_group));
- dataList.add(new DrawerItem("Import & Export",
- R.drawable.ic_action_import_export));
- dataList.add(new DrawerItem("Other Option")); // adding a header to the list
- dataList.add(new DrawerItem("About", R.drawable.ic_action_about));
- dataList.add(new DrawerItem("Settings", R.drawable.ic_action_settings));
- dataList.add(new DrawerItem("Help", R.drawable.ic_action_help));
- ...
- if (savedInstanceState == null) {
- if (dataList.get(0).isSpinner()
- & dataList.get(1).getTitle() != null) {
- SelectItem(2);
- } else if (dataList.get(0).getTitle() != null) {
- SelectItem(1);
- } else {
- SelectItem(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement