2023-08-06 14:10:48 +02:00
|
|
|
package android.widget;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.util.AttributeSet;
|
|
|
|
|
|
2024-02-17 15:15:05 +01:00
|
|
|
public class RadioButton extends CompoundButton {
|
2023-08-06 14:10:48 +02:00
|
|
|
|
|
|
|
|
public RadioButton(Context context) {
|
|
|
|
|
super(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public RadioButton(Context context, AttributeSet attributeSet) {
|
|
|
|
|
super(context, attributeSet);
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-10 16:05:31 +01:00
|
|
|
@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) {}
|
|
|
|
|
|
2025-02-05 16:27:17 +01:00
|
|
|
}
|