- 创建一个androidstudio工程
- 在
drawable中添加
![]()
main_left:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="1dp"
android:color="@color/orange">
</stroke>
<corners
android:bottomLeftRadius="20dp"
android:topLeftRadius="20dp">
</corners>
</shape>
main_right:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="1dp"
android:color="@color/orange">
</stroke>
<corners
android:bottomRightRadius="20dp"
android:topRightRadius="20dp">
</corners>
</shape>
- 在
activity_main中完成基本布局代码
![]()
``