Android 升级Google Play Services 7.5.0后,分级栏颜色显示为白色

Android 升级Google Play Services 7.5.0后,分级栏颜色显示为白色,android,android-widget,google-play-services,ratingbar,Android,Android Widget,Google Play Services,Ratingbar,在我升级到“com.google.android.gms:play services:7.5.0”之前,我的应用程序一直运行得很好。我在一项活动中使用了分级栏,效果很好。但升级后,分级栏颜色显示为白色。甚至我尝试使用代码和布局来更改颜色,但颜色显示为白色。但当我触摸评级栏时,会出现一些绿色的评级栏 代码: <RatingBar android:layout_width="wrap_content" android:layout_height="wrap_content"

在我升级到“com.google.android.gms:play services:7.5.0”之前,我的应用程序一直运行得很好。我在一项活动中使用了分级栏,效果很好。但升级后,分级栏颜色显示为白色。甚至我尝试使用代码和布局来更改颜色,但颜色显示为白色。但当我触摸评级栏时,会出现一些绿色的评级栏

代码:

<RatingBar
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/ratingBar"
    android:layout_gravity="center_horizontal"
    android:numStars="5"
    android:theme="@style/Theme.AppCompat.Light"
    android:stepSize="0.5"
    android:progressBackgroundTint="#ff048ec4"
    android:progressTint="#ff048ec4"
    android:progressBackgroundTintMode="multiply"
    android:progressTintMode="multiply" />

问题只在于低于棒棒糖的版本。棒棒糖没有问题,但在Kitkat&lower版本中,颜色显示为白色

有人知道这个问题的解决方案吗?
提前感谢。

对于API>=21

Drawable progress = ratingBar.getProgressDrawable();
DrawableCompat.setTint(progress, Color.YELLOW);
RatingBar ratingBar = (RatingBar) findViewById(R.id.ratingBar);
LayerDrawable stars = (LayerDrawable) ratingBar.getProgressDrawable();
stars.getDrawable(2).setColorFilter(Color.YELLOW,PorterDuff.Mode.SRC_ATOP);
API<21的

Drawable progress = ratingBar.getProgressDrawable();
DrawableCompat.setTint(progress, Color.YELLOW);
RatingBar ratingBar = (RatingBar) findViewById(R.id.ratingBar);
LayerDrawable stars = (LayerDrawable) ratingBar.getProgressDrawable();
stars.getDrawable(2).setColorFilter(Color.YELLOW,PorterDuff.Mode.SRC_ATOP);