Files
android_translation_layer/src/api-impl/android/widget/CheckBox.java

42 lines
960 B
Java
Raw Normal View History

package android.widget;
import android.content.Context;
import android.util.AttributeSet;
2023-09-19 23:22:21 +02:00
public class CheckBox extends CompoundButton {
public CheckBox(Context context) {
super(context);
}
public CheckBox(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
2023-11-08 21:40:39 +01:00
public void setLines(int lines) {}
@Override
protected native long native_constructor(Context context, AttributeSet attrs);
@Override
public native void setOnCheckedChangeListener(OnCheckedChangeListener listener);
@Override
public native void setChecked(boolean checked);
@Override
public native boolean isChecked();
@Override
public native void setText(CharSequence text);
// following methods are overridden to prevent calling incompatible methods from superclasses
@Override
public void setOnClickListener(final OnClickListener l) {}
@Override
public void setTextColor(int color) {}
@Override
public void setTextSize(float size) {}
}