title: rating bar not showing all five stars with wrap content and also custom style not working android
body: <p>i am trying to show rating for items in recyclerview list.by which user can see and give their feedback. i have tried with custom rated star color and empty star color.but its not working well.the problems are,all five stars not showing there(4 star showing). and i wanted to customize star's selected and empty color but thats also not working.
  here is my adapter code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_marginTop="5dp"&gt;
  
  
      &lt;ImageView
          android:layout_width="110dp"
          android:layout_height="110dp"
          android:id="@+id/productImageViewId_deal"
          android:src="@drawable/wad_logo_sparkle"
          android:layout_centerVertical="true"
          android:paddingLeft="10dp"
          android:paddingRight="10dp"
          android:fitsSystemWindows="true"
          android:scaleType="fitCenter"
          /&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/productTitleTvId_deal"
          android:text="£25,500 FORD GALAXY TITANIUM "
          android:layout_marginLeft="5dp"
          android:textColor="#0e4f71"
          android:layout_toEndOf="@+id/productImageViewId_deal"
          android:textStyle="bold"
          android:textSize="16sp"
          /&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/productDescTvId_deal"
          android:text="2.0 5DR HEATED FRONT SEATS, ACTIVE PAR"
          android:layout_marginLeft="5dp"
          android:textColor="#000000"
          android:layout_toEndOf="@+id/productImageViewId_deal"
          android:layout_below="@+id/productTitleTvId_deal"
          android:textSize="14sp"
          /&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/productLocTvId_deal"
          android:text=" Ilford, 0, England"
          android:drawableLeft="@drawable/location_icon"
          android:layout_marginLeft="5dp"
          android:textColor="#777"
          android:layout_toEndOf="@+id/productImageViewId_deal"
          android:layout_below="@+id/productDescTvId_deal"
          /&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/productPostTimeTvId_deal"
          android:text="May 06, 2016, 12:1914"
          android:layout_marginLeft="5dp"
          android:textColor="#000000"
          android:layout_toEndOf="@+id/productImageViewId_deal"
          android:layout_below="@+id/productLocTvId_deal"
          /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="£25,000.00"
          android:id="@+id/productPriceTvId_deal"
          android:layout_marginLeft="5dp"
          android:paddingBottom="10dp"
          android:textColor="#1470a6"
          android:layout_toEndOf="@+id/productImageViewId_deal"
          android:layout_below="@+id/productPostTimeTvId_deal"
          /&gt;
  
      &lt;RatingBar
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:max="5"
          android:layout_toEndOf="@+id/productImageViewId_deal"
          android:layout_below="@+id/productPriceTvId_deal"
          android:theme="@style/RatingBar"
          android:layout_marginRight="10dp"
          /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>here is style:</p>
  
  <pre><code>&lt;style name="RatingBar" parent="Theme.AppCompat"&gt;
  
          &lt;item name="colorControlNormal"&gt;#1470A6&lt;/item&gt;
          &lt;item name="android:colorBackground"&gt;#c44&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/zVc8o.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zVc8o.jpg" alt="enter image description here"></a></p>