1.在drawable文件夾下面創建setbar_bg.xml
復制代碼 代碼如下:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- 背景色 -->
<solid android:color="#FFE4B5"/>
<!-- 邊框色 -->
<stroke android:width="0.5dip" android:color="#81CE47" />
</shape>
2.設置TextView順序
復制代碼 代碼如下:
android:background="@drawable/setbar_bg"