I'm using code from this answer. And I'm trying to disable the elevation of the toolbar when collapsed. I tried putting android:elevation="0dp"
to all xml tags but it just didn't work out. Any suggestion?
Setting app:elevation="0dp"
on AppBarLayout
does the job.
Just add
android:stateListAnimator="@null"
to your AppBarLayout
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With