Android Material Drawer删除帐户标题dropdwon

Jar*_*red 3 account android header drawer

如何使用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();
Run Code Online (Sandbox Code Playgroud)

Jar*_*red 8

固定它!添加一行......

.withSelectionListEnabledForSingleProfile(false)
Run Code Online (Sandbox Code Playgroud)