Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Drawer()
- .withActivity(this)
- .withToolbar(toolbar)
- .withActionBarDrawerToggle(true)
- .withHeader(R.layout.drawer_header)
- .addDrawerItems(
- new PrimaryDrawerItem().withName(R.string.drawer_item_home).withIcon(FontAwesome.Icon.faw_home).withBadge("99").withIdentifier(1),
- new PrimaryDrawerItem().withName(R.string.drawer_item_free_play).withIcon(FontAwesome.Icon.faw_gamepad),
- new PrimaryDrawerItem().withName(R.string.drawer_item_custom).withIcon(FontAwesome.Icon.faw_eye).withBadge("6").withIdentifier(2),
- new SectionDrawerItem().withName(R.string.drawer_item_settings),
- new SecondaryDrawerItem().withName(R.string.drawer_item_help).withIcon(FontAwesome.Icon.faw_cog),
- new SecondaryDrawerItem().withName(R.string.drawer_item_open_source).withIcon(FontAwesome.Icon.faw_question).setEnabled(false),
- new DividerDrawerItem(),
- new SecondaryDrawerItem().withName(R.string.drawer_item_contact).withIcon(FontAwesome.Icon.faw_github).withBadge("12+").withIdentifier(1)
- )
- .build();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement