- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
49 lines
1.8 KiB
Java
49 lines
1.8 KiB
Java
package androidx.appcompat.widget;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Canvas;
|
|
import android.util.AttributeSet;
|
|
import android.widget.SeekBar;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.appcompat.R;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class AppCompatSeekBar extends SeekBar {
|
|
private final AppCompatSeekBarHelper mAppCompatSeekBarHelper;
|
|
|
|
public AppCompatSeekBar(@NonNull Context context) {
|
|
this(context, null);
|
|
}
|
|
|
|
public AppCompatSeekBar(@NonNull Context context, @Nullable AttributeSet attributeSet) {
|
|
this(context, attributeSet, R.attr.seekBarStyle);
|
|
}
|
|
|
|
public AppCompatSeekBar(@NonNull Context context, @Nullable 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
|
|
public synchronized void onDraw(Canvas canvas) {
|
|
super.onDraw(canvas);
|
|
this.mAppCompatSeekBarHelper.drawTickMarks(canvas);
|
|
}
|
|
|
|
@Override // android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
|
|
public 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();
|
|
}
|
|
}
|