mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 02:47:17 +01:00
49 lines
1.9 KiB
Java
49 lines
1.9 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;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
public class AppCompatSeekBar extends SeekBar {
|
|
private final AppCompatSeekBarHelper mAppCompatSeekBarHelper;
|
|
|
|
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 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();
|
|
}
|
|
|
|
@Override // android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
|
|
public synchronized void onDraw(Canvas canvas) {
|
|
super.onDraw(canvas);
|
|
this.mAppCompatSeekBarHelper.drawTickMarks(canvas);
|
|
}
|
|
|
|
public AppCompatSeekBar(@NonNull Context context, @Nullable AttributeSet attributeSet) {
|
|
this(context, attributeSet, R.attr.seekBarStyle);
|
|
}
|
|
|
|
public AppCompatSeekBar(@NonNull Context context) {
|
|
this(context, null);
|
|
}
|
|
}
|