11

When I set up my CheckedTextView, it has no CheckBox. Here is the xml code for it:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        >
    <CheckedTextView
            android:id="@+id/checkedtext"
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:checked="false"
            android:textSize="25dp"
            android:textColor="#FFFFFF"
            android:checkMark="@android:attr/checkMark"
            />
</RelativeLayout>
Onik
  • 19,396
  • 14
  • 68
  • 91
Cg2916
  • 1,117
  • 6
  • 23
  • 36

2 Answers2

31

Try : android:checkMark="?android:attr/listChoiceIndicatorMultiple"

lini sax
  • 911
  • 1
  • 11
  • 15
16

replace

android:checkMark="@android:attr/checkMark"

by

android:checkMark="?android:attr/textCheckMark" 
EricLarch
  • 5,653
  • 5
  • 31
  • 37
  • 6
    Try with `android:checkMark="?android:attr/listChoiceIndicatorMultiple"` and if it still throws an Exception please attach your java code and the full stack trace – EricLarch Feb 22 '11 at 09:37