Android Material Drawer删除帐户标题dropdwon
作者:互联网
如何使用Mike Penz使用Material Drawer库删除显示AccountHeader的已连接帐户的下拉菜单?
我目前的代码:
// Create the AccountHeader
AccountHeader headerResult = new AccountHeaderBuilder()
.withActivity(this)
//.withHeaderBackground(R.drawable.header)
.addProfiles(
new ProfileDrawerItem().withName(displayName).withEmail(email).withIcon(firebaseUser.getPhotoUrl())
)
.withCompactStyle(true)
.withTextColor(getResources().getColor(R.color.itemTextColor))
.build();
解决方法:
固定它!添加一行……
.withSelectionListEnabledForSingleProfile(false)
标签:account,android,header,drawer 来源: https://codeday.me/bug/20190727/1553851.html