简体   繁体   中英

How to create shapes triangle in android

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

第一图片

and

次要图片

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM