title: When I use custom stars for Android RatingBar, always show half star for decimal values below 0.5
body: <p>I've looked up a number of posts (e.g. <a href="https://stackoverflow.com/questions/2446270/android-ratingbar-change-star-colors">Android RatingBar change star colors</a>, <a href="https://stackoverflow.com/questions/17802479/change-the-color-of-the-stars-in-the-rating-bar-where-the-rating-bar-is-created">Change the color of the stars in the rating bar where the rating bar is created dynamically in android</a>, <a href="https://stackoverflow.com/questions/18008121/how-can-i-set-the-star-color-of-the-ratingbar">How can I set the star color of the ratingbar?</a>) in order to change the colours of the stars in the RatingBar. I followed the posts and was able to change the stars for the custom RatingBar, but in doing this I was no longer able to set the value to be a decimal lower than a half (e.g. 0.2). It would always show up as the half (e.g. 0.5). When I set the value to be above the half (e.g. 0.7) it displays perfectly.</p>
  
  <p>The following are the sample images that I am using for my custom RatingBar (i.e. ratingbar_empty.png, ratingbar_half.png, ratingbar_full.png)</p>
  
  <p><img src="https://i.stack.imgur.com/OzCEO.png" alt="Empty Star">
  <img src="https://i.stack.imgur.com/gMiLX.png" alt="Half Star">
  <img src="https://i.stack.imgur.com/xNShZ.png" alt="Full Star"></p>
  
  <p>The following is the xml to use the custom stars (ratingbar_custom.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/ratingbar_empty" /&gt;
      &lt;item android:id="@android:id/secondaryProgress" android:drawable="@drawable/ratingbar_half" /&gt;
      &lt;item android:id="@android:id/progress" android:drawable="@drawable/ratingbar_full" /&gt;
  &lt;/layer-list&gt;'
  </code></pre>
  
  <p>The following is then how I use my custom RatingBar in my layout.</p>
  
  <pre><code>&lt;RatingBar 
      android:id="@+id/rb_rating"
      android:numStars="7"
      android:rating="0"      
      android:stepSize="0.01"                     
      android:isIndicator="true"                                                            
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:gravity="center"
      android:progressDrawable="@drawable/ratingbar_custom" /&gt;
  </code></pre>
  
  <p>When I then put it all together and set the value of the RatingBar to be 0.2, it sets the RatingBar visually to 0.5, as shown below. Has anyone any ideas why this is happening or what I'm doing wrong? Any help would be greatly appreciated. Thanks</p>
  
  <p><img src="https://i.stack.imgur.com/nAKQw.png" alt="Setting custom RatingBar to 0.2, but visually showing 0.5"></p>