我非常感激如果有人可以帮助我使用形状可绘制对象作为视图的背景XML。
这是我尝试过的: 但是我从来没有得到颜色。无论我放置哪种颜色属性,Android总是给我黑色文本和白色背景。
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="1dip" android:color="#FBBB" />
<solid android:color="#6000"/>
</shape>
我尝试过,但不起作用。
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
android:color="#6000>
</shape>
我尝试过,但不起作用。
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
android:background="#6000>
</shape>
我尝试搜索了一下,但只找到了这些有限的结果。