2017-07-07 50 views
0

RatingBar削减我的progressDrawable,不管我怎么设置它的高度(wrap_content,确切Drawable的高度不起作用)。看起来,RatingBar在非方形图像中表现不佳。任何想法如何避免剪辑?该图像有一些透明填充,尺寸在屏幕截图中以蓝色边框暗示。RatingBar切断进度

<RatingBar android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:numStars="1" 
        android:progressDrawable="@drawable/selector_person_bar" 
        android:rating="0" 
        android:stepSize="1"/> 

enter image description here

回答

1

明白了,由于ProgressBar的实施bugandroid:maxHeight必须设置以避免削波。