我给布局添加了一个边界,但是除了白色或黑色,别的颜色不能定义。下面是资源文件夹中 boundary.xml 的代码片段。
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<stroke
android:width="2dip"
android:color="@android:color/white" />
</shape>