java - Shape with straight/cutted edges -
i want create background drawable xml use background linearlayout
. can't find tutorials shapes straight or cutted edges - round edges. isn't possible?
the shape should this:
thats code rectangle round corners:
<shape android:shape="rectangle"> <corners android:topleftradius="10dp" android:toprightradius="10dp" android:bottomleftradius="10dp" android:bottomrightradius="10dp" /> <gradient android:startcolor="#000" android:endcolor="#000" android:gradientradius="400" android:angle="-270"/> </shape>
hope can me this.
cheers
i tried create button xml use background.i cut image photoshop , implement in xml imagebutton background.hope may draw round edges button. example:-
<button android:id="@+id/answer1" android:layout_width="210dp" android:layout_height="40dp" android:layout_alignparentleft="true" android:layout_below="@+id/question" android:layout_marginleft="16dp" android:layout_margintop="10dp" android:background="@drawable/ans"
Comments
Post a Comment