Skip to content

Instantly share code, notes, and snippets.

@viztushar
Created October 7, 2017 12:43
Show Gist options
  • Save viztushar/6323c383c301b3f3dfb8eb80d57134f3 to your computer and use it in GitHub Desktop.
Save viztushar/6323c383c301b3f3dfb8eb80d57134f3 to your computer and use it in GitHub Desktop.
AccountHeader header = new AccountHeaderBuilder().withActivity(this)
.withAccountHeader(R.layout.header).build();
new DrawerBuilder()
.withActivity(this)
.withToolbar(mToolbar)
.withAccountHeader(header)
.addDrawerItems(item,item2,new DividerDrawerItem(),item3,item4,item5,item6,new DividerDrawerItem(),
item7)
.withActionBarDrawerToggle(true)
.withTranslucentNavigationBar(true)
.withTranslucentStatusBar(true)
.withSliderBackgroundColor(getResources().getColor(R.color.colorPrimary))
.build();
@viztushar
Copy link
Author

main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment