mikepenz / MaterialDrawer

The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
https://mikepenz.dev
Apache License 2.0
11.67k stars 2.05k forks source link

UI Setting #2763

Closed Vanek1756 closed 2 years ago

Vanek1756 commented 2 years ago

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)

image

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

mikepenz commented 2 years ago

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: https://github.com/mikepenz/MaterialDrawer/blob/5ab67d6436b2e4c42793b4ed8be9843b3e6015e4/materialdrawer/src/main/java/com/mikepenz/materialdrawer/util/Utils.kt#L50-L51 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

Vanek1756 commented 2 years ago

Thanks, you helped me a lot