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:

shape

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

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 -