title: How to add image for simplecursor adapter custom list item layout
body: <p>How to add image(work like a check box) in custom list item layout in simpleCursor Adapter which is loaded in ListFragment?</p>
  
  <pre><code>@Override
      public void onActivityCreated(Bundle savedInstanceState) {
          super.onActivityCreated(savedInstanceState);
  
          setEmptyText("Loading...");
  
          myadapter = new SimpleCursorAdapter(getActivity().getApplicationContext(), R.layout.my_list_item, null,  new String[] {TAG_NAME,TAG_TEXT1,TAG_TEXT2}, new int[] {R.id.name,R.id.text1,R.id.text2},0);
  
          setListAdapter(myadapter);
          myLoader = getLoaderManager().initLoader(0, null, this);
      }
  </code></pre>
  
  <p><strong>my_list_item.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical" &gt;
      &lt;!--&lt;ImageView android:src="@drawable/action_settings"
         android:layout_width="wrap_content"
         android:layout_height="fill_parent" /&gt;--&gt;
  
      &lt;TextView
          android:id="@+id/name"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:paddingBottom="2dip"
          android:paddingLeft="2dip"
          android:textColor="@android:color/black"
          android:textStyle="bold" &gt;
      &lt;/TextView&gt;
  
      &lt;TextView
          android:id="@+id/text1_static"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@id/name"
          android:text="@string/text1_static"
          android:textColor="@android:color/black" /&gt;
  
      &lt;TextView
          android:id="@+id/text1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/name"
          android:layout_marginLeft="5dp"
          android:layout_toRightOf="@id/text1_static"
          android:textColor="@android:color/black" /&gt;
  
      &lt;TextView
          android:id="@+id/text2_static"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@id/symbol_static"
          android:text="@string/text2_static"
          android:textColor="@android:color/black" /&gt;
  
      &lt;TextView
          android:id="@+id/text2"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/text1"
          android:layout_marginLeft="5dp"
          android:layout_toRightOf="@id/text2_static"
          android:textColor="@android:color/black" &gt;
      &lt;/TextView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>How to add an image(it works like checkbox with id of listitem value) for each list item dynamically?</p>