private void setupMenuItems() { menuItems.add(new GlobalMenuItem(R.mipmap.home, "主页")); menuItems.add(new GlobalMenuItem(R.mipmap.sort, "分类")); menuItems.add(new GlobalMenuItem(R.mipmap.like, "喜欢过的")); menuItems.add(GlobalMenuItem.dividerMenuItem()); menuItems.add(new GlobalMenuItem(R.mipmap.send, "分享新品")); menuItems.add(new GlobalMenuItem(R.mipmap.give, "支持NEW")); menuItems.add(GlobalMenuItem.dividerMenuItem()); menuItems.add(new GlobalMenuItem(R.mipmap.setting, "设置")); menuItems.add(new GlobalMenuItem(R.mipmap.about, "关于")); notifyDataSetChanged(); }
private void setupMenuItems() { menuItems.add(new GlobalMenuItem(R.drawable.ic_global_menu_feed, "My Feed")); menuItems.add(new GlobalMenuItem(R.drawable.ic_global_menu_direct, "Instagram Direct")); menuItems.add(new GlobalMenuItem(R.drawable.ic_global_menu_news, "News")); menuItems.add(new GlobalMenuItem(R.drawable.ic_global_menu_popular, "Popular")); menuItems.add(new GlobalMenuItem(R.drawable.ic_global_menu_nearby, "Photos Nearby")); menuItems.add(new GlobalMenuItem(R.drawable.ic_global_menu_likes, "Photos You've Liked")); menuItems.add(GlobalMenuItem.dividerMenuItem()); menuItems.add(new GlobalMenuItem(0, "Settings")); menuItems.add(new GlobalMenuItem(0, "About")); notifyDataSetChanged(); }
public static GlobalMenuItem dividerMenuItem() { GlobalMenuItem globalMenuItem = new GlobalMenuItem(); globalMenuItem.isDivider = true; return globalMenuItem; }