Error creating xml file in android
<p>Error while creating Xml file. </p>

<p>Exception raised during rendering:-</p>

<pre><code>android.widget.CheckBox cannot be cast to android.view.ViewGroup
</code></pre>

<p>xml code</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:orientation="horizontal" 
android:gravity="center_vertical"&gt;
&lt;CheckBox 
    android:id="@+id/bcheck" 
    android:layout_height="wrap_content" 
    android:layout_width="wrap_content" 
    android:focusable="false"&gt;   
&lt;TextView 
    android:id="@+id/txtTitle" 
    android:layout_width="wrap_content"
     android:gravity="left|center_vertical" 
     android:layout_height="?android:attr/listPreferredItemHeight" 
     android:text="Test" 
     android:focusable="false"&gt;  
&lt;/TextView&gt;
&lt;LinearLayout android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:orientation="horizontal" 
    android:gravity="right|center_vertical"&gt;
    &lt;ImageButton android:id="@+id/ImageButton01" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:clickable="true" &gt;&lt;/ImageButton&gt;
&lt;/LinearLayout&gt;&lt;/CheckBox&gt;
</code></pre>

<p></p>

<p>how can I solve this problem?</p>
