Yes. Maybe! But you need to override the SeekBar drawableStateChanged function, with something like this:
@Override protected void drawableStateChanged() { super.drawableStateChanged(); final Drawable progressDrawable = getProgressDrawable(); if(isEnabled() == false && progressDrawable != null) progressDrawable.setAlpha(255); }
In fact, I got really angry when I saw the value of hardcoded alpha in AbsSeekBar:
mDisabledAlpha = a.getFloat(com.android.internal.R.styleable.Theme_disabledAlpha, 0.5f);
Because there is no function that will turn off or even change the alpha value for SeekBar. Just take a look at these lines of code in the drawableStateChanged function:
if (progressDrawable != null) { progressDrawable.setAlpha(isEnabled() ? NO_ALPHA : (int) (NO_ALPHA * mDisabledAlpha)); }
source share