Styling rating bar not working
<p>I am trying to style my rating bar. I created style for rating bar and added it to my rating bar. But rating bar is ignoring it's style and picking it from AppTheme. 
Here is both styles</p>

<pre><code>    &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
        &lt;!-- Customize your theme here. --&gt;
        &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
        &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
        &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
        &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
        &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
        &lt;item name="colorControlNormal"&gt;#ffffff&lt;/item&gt;
&lt;/style&gt;
    &lt;style name="MyMaterialTheme" parent="AppTheme"/&gt;
    &lt;style name="foodRatingBar" parent="@android:style/Widget.RatingBar"&gt;
        &lt;item name="android:progressDrawable"&gt;@drawable/rating_stars&lt;/item&gt;
        &lt;item name="android:minHeight"&gt;48dip&lt;/item&gt; &lt;!-- your desired size --&gt;
        &lt;item name="android:maxHeight"&gt;48dip&lt;/item&gt; &lt;!-- your desired size --&gt;
    &lt;/style&gt;
</code></pre>

<p>rating_stars.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:id="@android:id/background"
        android:drawable="@drawable/star_selected" /&gt;
    &lt;item android:id="@android:id/secondaryProgress"
        android:drawable="@drawable/star_selected" /&gt;
    &lt;item android:id="@android:id/progress"
        android:drawable="@drawable/stsr" /&gt;
&lt;/layer-list&gt;
</code></pre>

<p>rating bar xml</p>

<pre><code>&lt;RatingBar
    android:theme="@style/foodRatingBar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    android:layout_marginTop="5dp"
    android:numStars="5"
    android:isIndicator="false" /&gt;
</code></pre>

<p>on applying this style it still picks color from AppTheme: colorCntrolNormal, colorAccent.
Is this way is wrong or am I missing something?</p>