UI Setting
Vanek1756 opened this issue · 2 comments
Hello
Please tell me how can I change the appearance of the strip under the account header and in front of the StickyDrawerItems?(Outlined them in the screenshot)
From above I am using AccountHeaderView
In the middle I add items via itemAdapter
At the bottom I am adding items via addStickyDrawerItems
I want to replace these lines with my own
Or if it is possible to adjust their color, transparency, fatness
These were defined as part of the material spec.
You can disable the divider and adjust the spacing with those APIs here:
https://github.com/mikepenz/MaterialDrawer/blob/develop/materialdrawer/src/main/java/com/mikepenz/materialdrawer/widget/AccountHeaderView.kt#L151-L163
The color for dividers is defined as the dividerColor
:
Defined as
materialDrawerDividerColor
in the theme.
For the footer, this is the elevation you see there.
You can control it being enabled or disabled via these APIs: https://github.com/mikepenz/MaterialDrawer/blob/develop/materialdrawer/src/main/java/com/mikepenz/materialdrawer/widget/MaterialDrawerSliderView.kt#L229-L247
Thanks, you helped me a lot