<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
<solid android:color="#fff" />
</shape>实现上面两个角和下面两个角不同的xml drawable
本文介绍了一种使用XML定义带有特定圆角的矩形的方法。该矩形顶部为5dp的圆角,底部为直角,并设置了填充颜色。

被折叠的 条评论
为什么被折叠?



