Source code
package android.support.v7.widget;
import android.graphics.drawable.Drawable;
import android.support.v7.internal.widget.TintManager;
import android.support.v7.internal.widget.TintTypedArray;
import android.util.AttributeSet;
import android.widget.SeekBar;
class AppCompatSeekBarHelper extends AppCompatProgressBarHelper {
private static final int[] TINT_ATTRS = new int[]{16843074};
private final SeekBar mView;
AppCompatSeekBarHelper(SeekBar view, TintManager tintManager) {
super(view, tintManager);
this.mView = view;
}
void loadFromAttributes(AttributeSet attrs, int defStyleAttr) {
super.loadFromAttributes(attrs, defStyleAttr);
TintTypedArray a = TintTypedArray.obtainStyledAttributes(this.mView.getContext(), attrs, TINT_ATTRS, defStyleAttr, 0);
Drawable drawable = a.getDrawableIfKnown(0);
if (drawable != null) {
this.mView.setThumb(drawable);
}
a.recycle();
}
}