I am following the standard example of how to add a RatingBar. To control the number of stars I tried to use android:numStars=\"5\". The problem is
RatingBar
android:numStars=\"5\"
You should just use numStars="5" in your XML, and set android:layout_width="wrap_content". Then, you can play around with styles and other stuff, but the "wrap_content" in layout_width is what does the trick.
numStars="5"
android:layout_width="wrap_content"