안드로이드 개발 질문/답변
(글 수 45,052)
<RadioGroup
android:id="@+id/rb_skin_diagnosis01"
android:layout_width="fill_parent"
android:orientation="horizontal"
android:layout_height="wrap_content"
android:background="@color/custom_unfocused_color">
<RadioButton
android:id="@+id/rb_very_skin_diagnosis01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
style="@style/ar_textViewRdo"
android:text="@string/agree" />
<RadioButton
android:id="@+id/rb_little_skin_diagnosis01"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
style="@style/ar_textViewRdo"
android:text="@string/little" />
<RadioButton
android:id="@+id/rb_not_skin_diagnosis01"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
style="@style/ar_textViewRdo"
android:text="@string/not" />
</RadioGroup>
xml 을 이런식으로 라디오 그룹을 만들어서 작성했습니다.
이것이 한 20개 정도 각각 있는데요(id 는 각각 다르게)
만약 라디오 그룹에 아무것도 체크를 안했을때 포커스를 주면서 해당 라디오 그룹으로 이동하고 싶은데 어떤방식으로 처리를 해야하나요?
라디오 그룹에 아무것도 체크가 안됐을때 해당라디오그룹.requestFocus() 를 하니 안먹습니다.
도움을 주세요ㅠㅠ




라디오 버튼은 포커스가 아니라 체크함수를 사용하셔야 합니다.
라디오 버튼 속성에 있으니 찾아보시길 바랍니다.