title: Android RatingBar numStart not working
body: <p>I have simple <code>RatingBar</code> in my app. and i set <code>numStarts="5"</code> but it show more then 5 star. when i set  a<code>ndroid:layout_width="match_parent"</code> I tried to several tutorials but also did't work, as per doc <code>numStarts</code> for show number of starts but in my case it did't work. i go through doc and several tutorials but did't get any solution.</p>
  
  <p><a href="https://i.stack.imgur.com/Q5gkD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q5gkD.png" alt="enter image description here"></a></p>
  
  <p>but i want to only 5 stars in rating bar.</p>
  
  <p>my rating bar is given below.</p>
  
  <pre><code>&lt;RatingBar
      style="@style/customRatingBar"
      android:id="@+id/course_rating_bar"
      android:layout_height="match_parent"
      android:layout_width="match_parent"
      android:layout_marginRight="16dp"
      android:layout_marginLeft="16dp"
      android:numStars="5"
      android:isIndicator="false"
      android:stepSize="1.0"/&gt;
  </code></pre>
  
  <p>This is my custom style</p>
  
  <pre><code>&lt;style name="foodRatingBar" parent="@android:style/Widget.RatingBar"&gt;
          &lt;item name="android:progressDrawable"&gt;@drawable/ratingstars&lt;/item&gt;
          &lt;item name="android:minHeight"&gt;22dip&lt;/item&gt;
          &lt;item name="android:maxHeight"&gt;22dip&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>......</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_empty" /&gt;
      &lt;item android:id="@+android:id/secondaryProgress"
          android:drawable="@drawable/star_empty" /&gt;
      &lt;item android:id="@+android:id/progress"
          android:drawable="@drawable/star" /&gt;
  &lt;/layer-list&gt;
  </code></pre>