shiburagi / Drawer-Behavior

Drawer behavior is a library that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.
https://shiburagi.github.io/Drawer-Behavior/
MIT License
593 stars 101 forks source link

Support for set background of CardView in advance drawer layout #24

Closed exaZero closed 4 years ago

exaZero commented 4 years ago

I wanted to set my main content view translucent when opening the drawer but by default it had a white background and was not able to change it. Upon further inspection I saw that Views that are not instanceOf NavigationView are added into a CardView.

What I did was to create a cardBackground variable and the attribute "adl_cardBackground" to change the default background.

I thought that it will be a nice feature to have so I decided to make a pull request.

exaZero commented 4 years ago

Just realized that card background drawable prevents the card effect to work. Changed it card color to keep the effect.