2011. 10. 5. 16:52
1.
2.
dir is .. res/drawable/radiobtn.xml
ch -> checked
<RadioButton
android:id="@+id/setting_p_rb"
android:button="@drawable/radiobtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="개인회원 "
android:textColor="#9b9d9d"
android:textSize="16px"
android:layout_marginBottom="5px"
android:layout_marginTop="2px"
android:paddingRight="47px"/> 2.
dir is .. res/drawable/radiobtn.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_checked="true"
android:drawable="@drawable/i_radio_ch" />
<item
android:drawable="@drawable/i_radio" />
</selector> ch -> checked
안녕하세요 ^^
설명을 잠시 해보겠어요.
CheckBox와 같은 방식으로 2번처럼 커스텀한 UI 1번처럼 button에 UI를 세팅해주시면 됩니다.
도움되셧길 바랍니다 ㅎ
즐코딩! 낫빡침!
'Programming > Android' 카테고리의 다른 글
Android - Custom Dialog Set Root Background (0) | 2011.10.05 |
---|---|
Android - Custom CheckBox (0) | 2011.10.05 |
Android - Custom Dialog onClick Event (0) | 2011.10.05 |
Android - custom indeterminate progressbar (0) | 2011.10.05 |
Android - Activity for result /자신을 호출한 엑티비티에게 데이터 보내기 (0) | 2011.07.28 |