I am trying to apply the elevation effect for ImageButton. It works well on my Nexus tablet running Android 5.0, but the height doesn't work on Pre-Lollipop devices.
Tried ViewCompat.setElevation (view, evaluationValue), but nothing has changed.
I saw that some applications, such as Swarm or Gmail applications, use the enhancement effect for their FAB (floating action button) on Pre-Lollipop devices.
Do you have an idea how they use height?
source
share