我刚刚使用 android 形状创建了一个红色圆圈:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:innerRadiusRatio="4"
android:shape="ring"
android:thicknessRatio="9"
android:useLevel="false" >
<solid android:color="#FF0000" />
<size
android:height="48dip"
android:width="48dip" />
</shape>
这真的很酷,但我无法将圆圈的背景颜色设置为我的颜色。我试过android:background="#FFFFFF"
了,但在我的布局中它总是看起来是黑色的。如何设置上述形状的背景?