Create rectangle shape drawable with two side curved corner in android -
i create shape drawable resource xml file create background 2 side curved corner.
here post code of shape drawable. not give me right result. give me 4 side curved image. wanted know how create 2 side curved shape image.
thanks
<shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="#0579cd" /> <corners android:bottomleftradius="0dp" android:bottomrightradius="0dp" android:topleftradius="15dp" android:toprightradius="15dp" /> <padding android:bottom="8dp" android:left="8dp" android:right="8dp" android:top="8dp" />
just pass miner value non-curve corner field. in case:
<corners android:bottomleftradius="0.1dp" android:bottomrightradius="0.1dp" android:topleftradius="15dp" android:toprightradius="15dp" />
and 1 thing more. preview not show in graphical layout. should try see in device.
hope you.
Comments
Post a Comment