android布局的圆角边框
2016-11-06 19:26
260 查看
shape_corner.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#99CCFF" />
<corners
android:bottomLeftRadius="20dp"
android:bottomRightRadius="20dp"
android:topLeftRadius="20dp"
android:topRightRadius="20dp" />
</shape>activity_main.xml
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="@drawable/shape_corner"
android:orientation="vertical" >
</LinearLayout>
不用写 android:radius="20dp".......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#99CCFF" />
<corners
android:bottomLeftRadius="20dp"
android:bottomRightRadius="20dp"
android:topLeftRadius="20dp"
android:topRightRadius="20dp" />
</shape>activity_main.xml
<LinearLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="@drawable/shape_corner"
android:orientation="vertical" >
</LinearLayout>
不用写 android:radius="20dp".......
相关文章推荐
- 【Android】Android布局中实现圆角边框
- Android布局实现圆角边框
- Android布局中实现圆角边框
- Android开发(三)——Android布局中实现圆角边框
- Android布局实现圆角边框
- 【Android】Android布局中实现圆角边框
- Android布局实现圆角边框
- Android布局中实现圆角边框
- ShapeDemo---Android布局实现圆角边框
- Android布局中实现圆角边框
- Android布局实现圆角边框
- Android布局实现圆角边框
- Android布局实现圆角边框
- Android布局 圆角边框的实现
- Android布局实现圆角边框
- Android布局实现圆角边框
- Android布局中实现圆角边框
- 【Android】Android布局中实现圆角边框
- Android布局中实现圆角边框
- Android布局中实现圆角边框