android Marshmallow (6.0) 中的自定义 Seekbar 视图问题
Custom Seekbar view issue in android Marshmallow (6.0)
我在 android Marshmallow (6.0)
的搜索栏中遇到问题
以下是搜索栏视图
<SeekBar
android:id="@+id/SeekBar1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="100"
android:maxHeight="11dp"
android:progressDrawable="@drawable/styled_progress_seekbar"
android:thumb="@drawable/popularity_box"
android:indeterminate="false" />
自定义 progressDrawable 资源是
<item android:id="@android:id/background">
<bitmap
android:src="@drawable/blue_dot_new"
android:tileMode="mirror" />
</item>
<item android:id="@android:id/progress">
<bitmap
android:src="@drawable/grey_dot_new"
android:tileMode="repeat" />
</item>
我没有在这里包含我的 9 补丁图像。
以下是我在 Lollipop 之前得到的输出(工作正常)
但我在 Marshmallow 中遇到问题,输出是
非常感谢,
Nandakishore P
最后我通过增加 android:maxHeight="50dp" 和更改 9 补丁图像解决了这个问题。
我在 android Marshmallow (6.0)
的搜索栏中遇到问题以下是搜索栏视图
<SeekBar
android:id="@+id/SeekBar1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="100"
android:maxHeight="11dp"
android:progressDrawable="@drawable/styled_progress_seekbar"
android:thumb="@drawable/popularity_box"
android:indeterminate="false" />
自定义 progressDrawable 资源是
<item android:id="@android:id/background">
<bitmap
android:src="@drawable/blue_dot_new"
android:tileMode="mirror" />
</item>
<item android:id="@android:id/progress">
<bitmap
android:src="@drawable/grey_dot_new"
android:tileMode="repeat" />
</item>
我没有在这里包含我的 9 补丁图像。
以下是我在 Lollipop 之前得到的输出(工作正常)
但我在 Marshmallow 中遇到问题,输出是
非常感谢,
Nandakishore P
最后我通过增加 android:maxHeight="50dp" 和更改 9 补丁图像解决了这个问题。