Back to Materialdrawer

How can i use the AccountHeader with just one profile and disable the dropdown?

FAQ/accountheader_single_profile_without_dropdown.md

10.0.0-b01617 B
Original Source

How can i use the AccountHeader with just one profile and disable the dropdown?

This can be simply achieved by adding headerView.selectionListEnabledForSingleProfile = false to the Builder of the AccountHeader. This will then disable the dropdown and hide the arrow from the header.

Sample code

kotlin
headerView.selectionListEnabledForSingleProfile = false