Benim app radyo düğmesi bir ızgara yapmaya çalışıyorum, ne öğrendik bu da LinearLayout uzanır çünkü düzenli RadioGroup
kullanılarak mümkün olmadığını ve sen RadioButtons
kullanarak RelativeLayout İÇ RadioGroup
RadioGroup
düzenlemek çalışırsanız RelativeLayout
'un içinde Buttons
görmüyor.RadioGroup RelativeLayout'u genişletiyor mu?
Bu sorunu düzeltmek için LinearLayout yerine RelativeLayout'u genişleten özel bir RadioGroup oluşturmak istiyorum.
Bunu nasıl yaparım?
GÜNCELLEME: Ben bu hataları ne dedin ama sınıf dosyasında düzeltmek için nasıl bilmiyorum yaptı:
Description Resource Path Location Type
RadioGroup_checkedButton cannot be resolved or is not a field RadioGroupRelative.java /BlockBall/src/com/stickfigs/blockball line 81 Java Problem
The constructor RelativeLayout.LayoutParams(int, int, float) is undefined RadioGroupRelative.java /BlockBall/src/com/stickfigs/blockball line 265 Java Problem
The method setOnCheckedChangeWidgetListener(CompoundButton.OnCheckedChangeListener) is undefined for the type RadioButton RadioGroupRelative.java /BlockBall/src/com/stickfigs/blockball line 363 Java Problem
The method setOnCheckedChangeWidgetListener(null) is undefined for the type RadioButton RadioGroupRelative.java /BlockBall/src/com/stickfigs/blockball line 377 Java Problem
VERTICAL cannot be resolved to a variable RadioGroupRelative.java /BlockBall/src/com/stickfigs/blockball line 68 Java Problem
Widget_CompountButton_RadioButton cannot be resolved or is not a field RadioGroupRelative.java /BlockBall/src/com/stickfigs/blockball line 79 Java Problem
[RadioGroup kullanılmadan RadioButtons işleme deneyin.] [1] [1]: http://stackoverflow.com/questions/6332042/setting-up-a-radiogroup-programmatically/ 7019673 # 7019673 – Matt