cut off image in ratingbar
<p>I made own ratingbar. There are 4 sizes of flowers images (xdpi, hdpi, etc) from 24pxx24px to 64x64px.</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/ic_rating_flowers_empty" /&gt;
    &lt;item android:id="@+android:id/secondaryProgress"
          android:drawable="@drawable/ic_rating_flowers_empty" /&gt;
    &lt;item android:id="@+android:id/progress"
          android:drawable="@drawable/ic_rating_flowers" /&gt;
&lt;/layer-list&gt;
</code></pre>

<p>rating_flowers.xml in drawable floder</p>

<pre><code>&lt;style name="flowersRating" parent="@android:style/Widget.RatingBar"&gt;
    &lt;item name="android:progressDrawable"&gt;@drawable/rating_flowers&lt;/item&gt;
    &lt;item name="android:minHeight"&gt;24dip&lt;/item&gt;
    &lt;item name="android:maxHeight"&gt;64dip&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>in styles.xml</p>

<pre><code>&lt;TableRow
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="5dip" &gt;

    &lt;TextView
        android:text="@string/mood_headache" /&gt;

    &lt;RatingBar
        android:id="@+id/moodHeadacheRating"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"    
        android:numStars="3"
        android:stepSize="1.0"
        android:rating="0" 
        style="@style/flowersRating" /&gt;

 &lt;/TableRow&gt; 
</code></pre>

<p>and activity</p>

<p>And what I see</p>

<p><img src="http://i.stack.imgur.com/Q12ht.png" alt="What I see"></p>

<p>and images from drawable-ldpi</p>

<p><img src="http://i.stack.imgur.com/SJl7e.png" alt="enter image description here">
<img src="http://i.stack.imgur.com/FVoJf.png" alt="enter image description here"></p>
