Я только что создал красный круг, используя андроидные фигуры:
<?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"
, но он всегда выглядит черным в моем макете. Как установить фон указанной выше формы?