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

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -