Как изменить изображения по умолчанию для CheckBox

Я использую ListView и для каждой строки я есть row_item.xml, и я увеличиваю его в коде

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <CheckBox
        android:id="@+id/chk"
        android:layout_alignParentLeft="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
    <TextView
        android:id="@+id/txtChoice"
        android:textColor="#FF0000"
        android:text="TEST"
        android:layout_toRightOf="@id/chk"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" /> 
</RelativeLayout>

Как изменить этот checkBox, чтобы использовать другое изображение custom_1, если отмечено, и другое изображение custom_2, когда оно не отмечено?

43
задан Damir 16 October 2011 в 10:47
поделиться