如何设置Android小RatingBar的颜色

如何设置Android小RatingBar的颜色,android,ratingbar,Android,Ratingbar,我正在尝试使用以下代码为小progressbar设置自定义颜色: <style name="RatingBar" parent="Theme.AppCompat"> <item name="colorControlNormal">@color/gold_yellow</item> <item name="colorControlActivated">@color/light_grey</item>

我正在尝试使用以下代码为小progressbar设置自定义颜色:

<style name="RatingBar" parent="Theme.AppCompat">
        <item name="colorControlNormal">@color/gold_yellow</item>
        <item name="colorControlActivated">@color/light_grey</item>
    </style>




<RatingBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:isIndicator="true"
        android:rating="3.3"
        android:theme="@style/RatingBar"
        android:id="@+id/go_rating"
        style="@android:style/Widget.Holo.Light.RatingBar.Small"/>

@颜色/金黄色
@颜色/浅灰色
问题是:星星很小,但它们是蓝色的。但是如果我删除
style=“@android:style/Widget.Holo.Light.RatingBar.Small
则颜色变为金黄色,但变大

请问如何设置星星的自定义颜色,同时使其变小?

使用
style=“?attr/ratingBarStyleSmall”
style:

<RatingBar
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:isIndicator="true"
    android:rating="3.3"
    android:theme="@style/RatingBar"
    android:id="@+id/go_rating"
    style="?attr/ratingBarStyleSmall"/>


另请参见:

谢谢!你做到了!我为此奋斗了3个多小时。谢谢!