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 -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -