shape drawable on Android -
i use shape drawable draw background below:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startcolor="#888888" android:endcolor="#888888" android:angle="270"/> <corners android:topleftradius="4dip" android:toprightradius="4dip"/> <stroke android:width="2dip" android:color="#666666" android:dashwidth="10dip" android:dashgap="0dip" /> </shape>
i want set bottom edge without stroke.
how can modify it?
try this
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape> <padding android:bottom="3dip" android:left="3dip" android:right="3dip" android:top="3dip" /> <corners android:topleftradius="6dip" android:toprightradius="6dip" /> <solid android:color="#666666" /> </shape> </item> <item> <shape android:shape="rectangle" > <gradient android:angle="270" android:endcolor="#888888" android:startcolor="#888888" /> </shape> </item>
Comments
Post a Comment