How to make list view as multiselectable
<p>In screen layout as I declared my list view as</p>

<pre><code> &lt;ListView android:id="@id/android:list"
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:background="#00FF00"
               android:layout_weight="1"
               android:drawSelectorOnTop="false"/&gt;

     &lt;TextView android:id="@id/android:empty"
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:background="#FF0000"
               android:text="No data"/&gt;
</code></pre>

<p>And row layout is as </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
 &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:orientation="vertical"&gt;

     &lt;TextView android:id="@+id/text1"
         android:textSize="16sp"
         android:textStyle="bold"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"/&gt;

     &lt;TextView android:id="@+id/text2"
         android:textSize="16sp"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"/&gt;
 &lt;/LinearLayout&gt;
</code></pre>

<p>My problem is I want to make my list view as multi selected, but when I add attribute in list view <code>android:choiceMode="multipleChoice"</code> it doesn't work. And one way is there, with java code but when I changed id of listview <code>android:id="@id/multi_selectable_list</code> as before <code>android:id="@id/android:list</code> then at loding time of layout it gives error.
Is there any way, or in same way I am doing something wrong.
Actually I want multisectable list view, rules are </p>

<ol>
<li>there is a button if I clicked on that list should be change in multiselected.</li>
<li>By default list view can not multiselectable.</li>
</ol>
