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

December 28, 2019 ยท View on GitHub

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

headerView.selectionListEnabledForSingleProfile = false