Android:Create a shadow in shape
<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <!-- "background shadow" --> <item> <shape android:shape="rectangle" > <solid android:color="#000000" /> <corners android:radius="15dp" /> </shape> </item> <!-- background color --> <item android:bottom="3px" android:left="3px" android:right="3px" android:top="3px"> <shape android:shape="rectangle" > <solid android:color="#cc2b2b" /> <corners android:radius="8dp" /> </shape> </item> <!-- over left shadow --> <item> <shape android:shape="rectangle" > <gradient android:angle="180" android:centerColor="#00FF0000" android:centerX="0.9" android:endColor="#99000000" android:startColor="#00FF0000" /> <corners android:radius="8dp" /> </shape> </item> <!-- over right shadow --> <item> <shape android:shape="rectangle" > <gradient android:angle="360" android:centerColor="#00FF0000" android:centerX="0.9" android:endColor="#99000000" android:startColor="#00FF0000" /> <corners android:radius="8dp" /> </shape> </item> <!-- over top shadow --> <item> <shape android:shape="rectangle" > <gradient android:angle="-90" android:centerColor="#00FF0000" android:centerY="0.9" android:endColor="#00FF0000" android:startColor="#99000000" android:type="linear" /> <corners android:radius="8dp" /> </shape> </item> <!-- over bottom shadow --> <item> <shape android:shape="rectangle" > <gradient android:angle="90" android:centerColor="#00FF0000" android:centerY="0.9" android:endColor="#00FF0000" android:startColor="#99000000" android:type="linear" /> <corners android:radius="8dp" /> </shape> </item></layer-list>
You must Sign up as a member of Effecthub to view the content.
Latest Posts
- Android: CookieManager removeAllCookie() Crash
- XlistView: A listview which can pull to refresh and load more (1)
- Millions of Android Phones Could Be Affected by the Heartbleed Bug. Check to See if Yours Is One of Them
- TOP 10 ANDROID GAMES FOR MARCH 2014
- Android:Button with different textcolor and background in different states
11238 views 1 comments
You must Sign up as a member of Effecthub to join the conversation.