title: Use Rating Bar in Cardview
body: <p>I have to visualize a set of cardview and each one must have a rating bar with five stars.
  I used the code below:
  </p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="horizontal"
      android:background="@color/primary"&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:id="@+id/card_title"
          android:text="@string/titolo"
          android:lines="1"
          android:textColor="@color/icons"
          android:textSize="15sp"
          /&gt;
  
  
  
      &lt;android.widget.RatingBar
          android:id="@+id/myRatingBar"
          style="?android:attr/ratingBarStyleSmall"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:numStars="5"
          android:isIndicator="true"
          android:background="@android:color/holo_red_dark"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>but I can't see the raing bar in my cardview. Where is the problem?
  Please help me, thanks</p>