Rabbit-R1/switch port/java/sources/androidx/appcompat/widget/AppCompatSeekBar.java
2024-05-21 17:08:36 -04:00

46 lines
1.7 KiB
Java

package androidx.appcompat.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.SeekBar;
import androidx.appcompat.R;
/* loaded from: classes.dex */
public class AppCompatSeekBar extends SeekBar {
private final AppCompatSeekBarHelper mAppCompatSeekBarHelper;
public AppCompatSeekBar(Context context) {
this(context, null);
}
public AppCompatSeekBar(Context context, AttributeSet attributeSet) {
this(context, attributeSet, R.attr.seekBarStyle);
}
public AppCompatSeekBar(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
ThemeUtils.checkAppCompatTheme(this, getContext());
AppCompatSeekBarHelper appCompatSeekBarHelper = new AppCompatSeekBarHelper(this);
this.mAppCompatSeekBarHelper = appCompatSeekBarHelper;
appCompatSeekBarHelper.loadFromAttributes(attributeSet, i);
}
@Override // android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
protected synchronized void onDraw(Canvas canvas) {
super.onDraw(canvas);
this.mAppCompatSeekBarHelper.drawTickMarks(canvas);
}
@Override // android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
protected void drawableStateChanged() {
super.drawableStateChanged();
this.mAppCompatSeekBarHelper.drawableStateChanged();
}
@Override // android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
public void jumpDrawablesToCurrentState() {
super.jumpDrawablesToCurrentState();
this.mAppCompatSeekBarHelper.jumpDrawablesToCurrentState();
}
}