Is there a way I can remove the background bar image in the SeekBar android widget?
I just want it to show a slider with no progress bar behind it.
Any help?
There is a simpler way that doesn't require creating a new drawable. Simply set the following in your xml definition
android:progressDrawable="@android:color/transparent"
Or if you want to do it in your code:
mySlider.setProgressDrawable(new ColorDrawable(android.R.color.transparent));
Well I solved my own problem.
To remove the background, you have to create a blank drawable and set it to the progressDrawable:
satBar.setProgressDrawable(invisibleBackground);
Setting it to null doesn't seem to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With