When im pressing the thumb at my Seekbar, a pale shadow appears around it, like shown below.
How can i remove the shadow or set it transparent? Thanks!
When im pressing the thumb at my Seekbar, a pale shadow appears around it, like shown below.
How can i remove the shadow or set it transparent? Thanks!
add
android:background="@null"
for example:
<androidx.appcompat.widget.AppCompatSeekBar
android:id="@+id/seekbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null" />
It's a bit unintuitive, but just set android:background="@android:color/transparent"
on the SeekBar.
I guess if you change the ripple color, you can change that color. See this link to more information about how to change the ripple color of a button, the same solution maybe useful to you.
it's controlled by colorControlHighlight
so
<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>
OK the 'highlight' is just a ripple background of the seekbar, which is quite interesting!