¿ShapeDrawable como progressDrawable para RatingBar en Android?
Parece que no puedo configurar ShapeDrawable como progressDrawable para Ratingbar. Intenté lo siguiente pero fallé:
<RatingBar
android:id="@+id/ratingbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:numStars="5"
android:stepSize="1.0"
android:rating="3.0"
style="@style/myRatingBar"
/>
Estilo de myRatingbar:
<style name="myRatingBar" parent="@android:style/Widget.RatingBar">
<item name="android:progressDrawable">@drawable/ratingbar_full</item>
<item name="android:indeterminateDrawable">@drawable/ratingbar_full</item>
<item name="android:minHeight">48dip</item>
<item name="android:maxHeight">48dip</item>
<item name="android:scaleType">center</item>
</style>
ratingbar_full.xml:
<shape
android:shape="ring"
android:innerRadius="10dip"
android:thickness="1dip">
<solid android:color="@color/red" />
<size
android:width="48dip"
android:height="48dip"
/>
</shape>
Nada se ve en la pantalla.
EDITAR: use .png en lugar de formas para esta línea:
@ drawable / ratingbar_full