Android 额定杆切断可进行拉拔
无论我如何设置其高度(Android 额定杆切断可进行拉拔,android,ratingbar,Android,Ratingbar,无论我如何设置其高度(wrap\u content,确切的Drawable高度不起作用),我的progressDrawable的RatingBar都会被剪切。似乎,分级栏不能很好地处理非方形图像。有没有办法避免剪贴?图像确实有一些透明的填充,屏幕截图中用蓝色边框暗示大小 <RatingBar android:layout_width="wrap_content" android:layout_height="wrap_content"
wrap\u content
,确切的Drawable
高度不起作用),我的progressDrawable
的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"/>
明白了,由于ProgressBar
的实现中出现了错误,android:maxHeight
必须设置以避免剪辑