【发布时间】:2016-11-30 15:18:45
【问题描述】:
【问题讨论】:
标签: android seekbar seekbar-thumb
【问题讨论】:
标签: android seekbar seekbar-thumb
添加
android:background="@null"
例如:
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/seekbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null" />
【讨论】:
这有点不直观,但只需在 SeekBar 上设置android:background="@android:color/transparent"。
【讨论】:
我猜如果你改变波纹的颜色,你就可以改变那个颜色。有关如何更改按钮波纹颜色的更多信息,请参阅此link,相同的解决方案可能对您有用。
【讨论】:
由colorControlHighlight控制
所以
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/seekbar"
android:layout_width="0dp"
android:layout_height="35dp"
android:layout_weight="1"
android:theme="@style/seekBarStyle"
/>
<style name="seekBarStyle">
<item name="colorAccent">#0394D6</item>
<item name="colorControlHighlight">#22ffffff</item>
<item name="android:textColorSecondary">#fff</item>
</style>
好吧,'highlight'只是搜索栏的波纹背景,这很有趣!
【讨论】: