竖线:
<View android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginTop="15dp"
android:layout_marginBottom="15dp"
android:background="@color/edittext_hint"/>
圆角:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- 背景颜色 -->
<solid android:color="@color/layout_register_background" />
<padding android:left="5sp" />
<!-- 四个角为圆角 -->
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
<!-- 边框 -->
<stroke
android:width="1dp"
android:color="@color/edittext_hint" />
</shape>
然后引用的时候,在xml文件中android:background="@drawable/shape_corner"