好日子 想知道如何通過拖動和丟幀組件單選按鈕添加到ButtonGroup。 JRadioButton male = new JRadioButton("Male");
JRadioButton female = new JRadioButton("Female");
ButtonGroup bg = new ButtonGroup();
bg.add(male);
bg.add(femal
我有一個自定義的RadioButton類,我已將它放在Activity1上。我正在使用它的事件「onClick」打開另一個Activity2。下面是代碼: public class custom_radiobutton extends RadioButton{
Paint myPaint = new Paint();
private Context cont;
p