您的位置:首页 > 移动开发 > Android开发

Android shape属性在xml中自定义边框

2017-12-06 16:30 453 查看


<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
//样式为固体,中间填充颜色
<solid android:color="#f00" />
//边框
<stroke
android:width="2dp"
android:color="#00f" />
//边角样式
<corners
android:bottomLeftRadius="100dp"
android:bottomRightRadius="10dp"
android:topLeftRadius="10dp"
android:topRightRadius="10dp" />
</shape>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: