Android 自定义Seekbar四肢问题
你知道最后那件小事是什么吗?如果我将进度设置为0并移除拇指,则左侧的情况相同。 我注意到,当拇指位于最右边(也包括最左边)时,它是指拇指的位置,但我似乎无法将其移除 这是我正在使用的xml:Android 自定义Seekbar四肢问题,android,Android,你知道最后那件小事是什么吗?如果我将进度设置为0并移除拇指,则左侧的情况相同。 我注意到,当拇指位于最右边(也包括最左边)时,它是指拇指的位置,但我似乎无法将其移除 这是我正在使用的xml: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@andr
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<nine-patch
xmlns:android="http://schemas.android.com/apk/res/android"
android:dither="true"
android:src="@drawable/filler_bar_bckgnd_white"
/>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/filler_bar_bckgnd_green"
/>
</clip>
</item>
<item
android:id="@android:id/progress">
<clip>
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/filler_bar_bckgnd_green"
/>
</clip>
</item>
</layer-list>
我是这样设置的:
<SeekBar
android:id="@+id/my_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="100"
android:progress="40"
android:progressDrawable="@drawable/seekbar_progress"
android:thumb="@drawable/filler_bar_icon" />
以下是使用的图像:
我已经找到了问题所在。问题是那张图片。我已经玩过了,似乎我应该这样做: 尝试将android:dither=“true”t更改为
false