안녕하세요 초보 안드로이드 개발자입니다.
버튼 텍스트
버튼 텍스트
버튼 텍스트
이런 식으로 된 라디오 버튼을 구현했습니다.
<RadioGroup
android:id="@+id/setting_gps_group"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dimen_settings_item_margin"
android:layout_marginRight="@dimen/dimen_settings_item_margin"
android:gravity="center_vertical"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:orientation="vertical" >
이렇게 생긴 라디오 그룹 안에.
<RadioButton
android:id="@+id/unused_gps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/selector_checkbox_bg"
android:text="@string/unused_gps"
android:textColor="@color/color_172179191"
android:textSize="@dimen/font_size_40pt"
android:paddingLeft="@dimen/dimen_settings_beep_margin"
android:layout_marginBottom="@dimen/dimen_settings_beep_margin" />
이렇게 생긴 라디오 버튼들이 있습니다.
라디오버튼에 왼쪽 패딩을 준 이유는 라디오버튼의 버튼과 텍스트가 딱 달라붙어 있어서 조금 줬습니다.
그런데... 제가 갤럭시 단말로 테스트를 정상적으로 하다가
옵티머스로 테스트를 하니까... 텍스트가 라디오버튼이랑 겹쳐서 보입니다.
갤럭시는 텍스트의 패딩이 라디오버튼의 오른쪽 끝이 기준점으로 동작하고
옵티머스는 텍스트의 패딩이 라디오버튼의 왼쪽 끝이 기준점으로 동작하고 있습니다..
해결 방법 없나요..
안된다면.. 죄다 체크박스로 바꾸고..
코드도 일일이 수정하는 수 밖에..두둥..
도움좀 주시면 감사하겠습니다 ㅠㅠ
참고로 갤럭시는 노트2 이고 옵티머스는 옵g 입니다.