I have already added a style
<style name="myRatingBar" parent="@android:style/Widget.RatingBar">
Android won't scale a rating bar icons. When you decrease the
maxHeight android will always crop the icons as shown on the picture. The workaround for it and seems to be the only one solution is to provide your own icons for stars with the desired dimensions and set the
maxHeight to the size of the icons.