Advertisement
Guest User

layout_bg

a guest
Oct 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layer-list xmlns:android="http://schemas.android.com/apk/res/android"
  3.     android:shape="rectangle">
  4.  
  5.     <item>
  6.         <shape>
  7.             <!-- set the shadow color here -->
  8.             <stroke
  9.                 android:width="2.5dp"
  10.                 android:color="@color/darker_gray" />
  11.  
  12.             <!-- setting the thickness of shadow (positive value will give shadow on that side) -->
  13.  
  14.             <!--Set shadow width as per your requirement -->
  15.             <padding
  16.                 android:bottom="2dp"
  17.                 android:left="0.5dp"
  18.                 android:right="2dp"
  19.                 android:top="0.5dp" />
  20.  
  21.             <corners android:radius="2dp" />
  22.         </shape>
  23.     </item>
  24.  
  25.     <!--White Background -->
  26.     <item>
  27.         <shape>
  28.             <solid android:color="#fff" />  
  29.             <corners android:radius="2dp" />
  30.         </shape>
  31.     </item>
  32. </layer-list>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement