0

How to get this effects in android in file.xml?

FirstPicture

and

SecondaryPicture

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Muzzik
  • 105
  • 6
  • 5
    Do you mean [Rounded Rectangles?](http://stackoverflow.com/questions/5618402/how-to-draw-rounded-rectangle-in-android-ui) – gtgaxiola Dec 17 '15 at 21:59
  • Yes.. but i need to join 2x colors look at picture i don't now how i can make it. Now i got this: http://postimg.org/image/ytu1527zd/ I need red rounded rectangles on bottom and all black rounded rectangles on top. – Muzzik Dec 17 '15 at 22:04

1 Answers1

1

You use an xml layer list drawable and put the two rectangles on top of each other. In the corners tag of your xml drawable use the topLeftRadius, topRightRadius, bottomLeftRadius, and bottomRightRadius to control whether each corner is rounded independently.

Gabe Sechan
  • 90,003
  • 9
  • 87
  • 127