27 lines
978 B
Java
27 lines
978 B
Java
package androidx.appcompat.widget;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.widget.ToggleButton;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
public class AppCompatToggleButton extends ToggleButton {
|
|
private final AppCompatTextHelper mTextHelper;
|
|
|
|
public AppCompatToggleButton(@NonNull Context context) {
|
|
this(context, null);
|
|
}
|
|
|
|
public AppCompatToggleButton(@NonNull Context context, @Nullable AttributeSet attributeSet) {
|
|
this(context, attributeSet, 16842827);
|
|
}
|
|
|
|
public AppCompatToggleButton(@NonNull Context context, @Nullable AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
ThemeUtils.checkAppCompatTheme(this, getContext());
|
|
AppCompatTextHelper appCompatTextHelper = new AppCompatTextHelper(this);
|
|
this.mTextHelper = appCompatTextHelper;
|
|
appCompatTextHelper.loadFromAttributes(attributeSet, i);
|
|
}
|
|
}
|