This question very specific to https://github.com/mikepenz/MaterialDrawer customization.
I need to customize my account header as follows:
- There going to be only one account at any time
- Clicking on header (whole area) should give me DrawerClickListener#onItemClick callback
I managed to get DrawerClickListener#onItemClick callback by redirecting the profile listing listener. But the header selection lost on orientation change. [I have set with saved instance state]. Also the onItemClick delivers null IDrawerItem as it is not part of Adapter.
Am I making it too complicated or PrimaryDrawerItem itself can be extended to look like profile item?
- Layout should be rendered like profile with extra fields
- Loading ImageHolder to be changed to load url based images