Cannot change width and number of stars o RatingBar

view full story

http://stackoverflow.com – I am trying to set a RatingBar with only 5 stars but it expands to fill the width of the screen. I have found similar problems: How to make RatingBar to show five stars Android RatingBar - a complete mess android rating bar xml and numStars However, most of the time the solution is to set the width to "wrap_content" but the width for me has always been "wrap_content. This is my xml. If you scroll right to the bottom you'll see the two ratingBar: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height= (HowTos)