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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -