안드로이드
CheckBox 이미지 변경
블루건
2016. 2. 18. 14:24
CheckBox 위젯의 체크박스를 이미지로 변경.
<CheckBox
android:id="@+id/check_box"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/checkbox "/>
checkbox.xml
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="false" android:drawable="@drawable/check_off"/>
<item android:state_checked="true" android:drawable="@drawable/check_on"/>
<item android:drawable="@drawable/check"/>
</selector>