如何在android中创建形状三角形

时间:2015-12-17 21:58:22

标签: java android xml layout

如何在file.xml中的android中获得此效果?

enter image description here

FirstPicture

1 个答案:

答案 0 :(得分:1)

使用xml图层列表drawable并将两个矩形放在彼此的顶部。在xml drawable的corner标记中,使用topLeftRadius,topRightRadius,bottomLeftRadius和bottomRightRadius来控制每个角是否独立舍入。