2011. 10. 5. 17:15
1.
2.
dir is.. res/drawable/checkbtn.xml
<CheckBox
android:id="@+id/setting_idsave_cb"
android:button="@drawable/checkbtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="아이디저장"
android:textColor="#9b9d9d"
android:textSize="16px"
android:paddingRight="35px"/>2.
dir is.. res/drawable/checkbtn.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/img_checked" />
<item
android:drawable="@drawable/img_check" />
</selecto 안녕하세요 ^^
설명을 해보겠습니다!
사용방법은 1번과같이 button을 커스텀한 checkbox로 세팅해주시면됩니다.
2과같이 체그될때 이미지, 체크안될을때 이미지를 설정해주시면 끗!
도움되셧길 바랍니다 ㅎ
즐코딩! 낫빡침!
'Programming > Android' 카테고리의 다른 글
Android - Custom Swipe-Fling Scroll View / like home screen view (0) | 2011.10.05 |
---|---|
Android - Custom Dialog Set Root Background (0) | 2011.10.05 |
Android - Custom RadioButton (0) | 2011.10.05 |
Android - Custom Dialog onClick Event (0) | 2011.10.05 |
Android - custom indeterminate progressbar (0) | 2011.10.05 |