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

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".......
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Android 圆角边框