<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!-- <solid android:color="#dcdcdc" />--><!-- 设置背景色-->
<corners android:topLeftRadius="1px"
android:topRightRadius="1px"
android:bottomRightRadius="1px"
android:bottomLeftRadius="1px"
/><!-- 设置圆角 -->
<stroke
android:width="1px"
android:color="@color/orangered"
/><!-- 描边 -->
<padding
android:left="5px"
android:right="5px"
/><!-- 内边距 -->
</shape>
设置边框(可设置圆角)
最新推荐文章于 2023-07-27 20:47:22 发布