You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
40 lines
932 B
Java
40 lines
932 B
Java
package android.widget;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
|
|
public class RadioButton extends CompoundButton {
|
|
|
|
public RadioButton(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public RadioButton(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
@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) {}
|
|
|
|
}
|