If a button of elevation=5dp is attached to a LinearLayout of elevation=5dp,
Do we still see the button as being on the same level as the LinearLayout or 5dp above it?
Yes you can see the button as being on the Linear layout. As Button is in linear layout, layout will be on 5dp elevation from the screen and Button will be on 5dp elevation from linear layout.
Esentailly the elevation is Relative.
The elevation affects the view and the entire sub-collection of the view So, when we increase the view of the widow to 5dp elevations, the button also drops to 5dp, and the 5dp buttons make the parent 5dp higher.
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