Android xml drop shadow

Categories: ANDROID like

Simple xml code for shape drop shadow:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" 
       android:shape="rectangle">

    <gradient android:startColor="@android:color/transparent"
              android:endColor="#88333333"
              android:angle="90"/>

</shape>

    Leave a Reply

    Your email address will not be published. Required fields are marked *