Header image tryout

This commit is contained in:
Dominik Schürmann
2015-01-29 17:02:01 +01:00
parent e4e3360866
commit e0369a2f14
6 changed files with 2039 additions and 5 deletions

View File

@@ -38,8 +38,7 @@ public abstract class NavDrawerActivity extends MaterialNavigationDrawer {
// set the header image
// create and set the header
View view = LayoutInflater.from(this).inflate(R.layout.drawer_custom_header, null);
setDrawerHeaderCustom(view);
setDrawerHeaderImage(R.drawable.drawer_header);
// create sections
addSection(newSection(getString(R.string.title_keys), R.drawable.ic_vpn_key_black_24dp, new KeyListFragment()));