내 앱 라디오 버튼의 격자를 만들기 위해 노력하고는, 내가 배운 것은이가있는 LinearLayout를 확장하기 때문에 정기적으로 RadioGroup
를 사용 불가능하다는 것이다 당신은 RadioButtons
사용 RelativeLayout의 내부 RadioGroup
RadioGroup
을 준비하려고하면 RelativeLayout
안에 Buttons
이 표시되지 않습니다.RadioGroup 확장 RelativeLayout?
그래서이 문제를 해결하기 위해 LinearLayout 대신 RelativeLayout을 확장하는 사용자 정의 RadioGroup을 만들고 싶습니다.
어떻게하면됩니까?
업데이트 : 나는 이러한 오류를 가지고있는 당신이 말한하지만 클래스 파일에서 수정하는 방법을 알고하지 않았다 :
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의 사용없이 라디오 버튼에서 처리보세요. [1] [1] : http://stackoverflow.com/questions/6332042/setting-up-a-radiogroup-programmatically/ 7019673 # 7019673 – Matt