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

android - Sent Blob results empty -

javascript - Bootstrap Popover: iOS Safari strange behaviour -