android - Elevation not working for ImageView -


elevation imageview not working. declared imageview in xml this:

<imageview         android:id="@+id/image"         android:layout_width="100dp"         android:layout_height="50dp"         android:elevation="10dp"         android:src="@drawable/youtube" /> 

what else should elevation work imageview?

the elevation shadow derived background drawable of view. if imageview has no background, you'll see no shadow.

if want change behavior, need build own viewoutlineprovider , call view.setoutlineprovider() set (and not trivial).


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -