These lines comes because you are trying to wrap the Rating Bar image by using android:layout_height="wrap_content"
. So, as a solution you have to provide the height of the rating bar to the size of the image.
If the size of the rating bar image is 20, then try adding
android:layout_height="20dip"
This will work for you!