Muzzik
Muzzik

Reputation: 105

How to create shapes triangle in android

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

FirstPicture

and

SecondaryPicture

Upvotes: 0

Views: 86

Answers (1)

Gabe Sechan
Gabe Sechan

Reputation: 93559

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.

Upvotes: 1

Related Questions