給textview設定上下右邊框
阿新 • • 發佈:2019-02-13
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle" >
<stroke
android:width="1dp"
android:color="#ffffff" />
<corners
android:bottomRightRadius="5dp"
android:topRightRadius="5dp"
android:bottomLeftRadius="0dp"
android:topLeftRadius="0dp"/>
<solid android:color="#c53336" />
</shape>
</item>
<item
android:bottom="1dp"
android:right="1dp"
android:top="1dp">
<shape android:shape="rectangle" >
<stroke
android:width="1dp"
android:color="#c53336"/>
<corners
android:bottomRightRadius="5dp"
android:topRightRadius="5dp"
android:bottomLeftRadius="0dp"
android:topLeftRadius="0dp"/>
<solid android:color="#00000000"/>
</shape>
</item>
</layer-list>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle" >
<stroke
android:width="1dp"
android:color="#ffffff" />
<corners
android:bottomRightRadius="5dp"
android:topRightRadius="5dp"
android:bottomLeftRadius="0dp"
android:topLeftRadius="0dp"/>
<solid android:color="#c53336" />
</shape>
</item>
<item
android:bottom="1dp"
android:right="1dp"
android:top="1dp">
<shape android:shape="rectangle" >
<stroke
android:width="1dp"
android:color="#c53336"/>
<corners
android:bottomRightRadius="5dp"
android:topRightRadius="5dp"
android:bottomLeftRadius="0dp"
android:topLeftRadius="0dp"/>
<solid android:color="#00000000"/>
</shape>
</item>
</layer-list>