title: Android - List View `CHOICE_MODE_SINGLE` not working
body: <p>Thanks in advance to resolve this issue with android list view. This is the row of the list view adapter.</p>
  <pre><code>&lt;LinearLayout
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:padding=&quot;5dp&quot;
          android:weightSum=&quot;13&quot;
          android:orientation=&quot;horizontal&quot;
          android:layout_marginStart=&quot;20dp&quot;&gt;
  
          &lt;CheckBox
              android:id=&quot;@+id/chkId&quot;
              android:layout_width=&quot;0dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_weight=&quot;1&quot; /&gt;
  
          &lt;TextView
              android:id=&quot;@+id/row_que_status&quot;
              android:layout_width=&quot;0dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_marginLeft=&quot;10dip&quot;
              android:layout_marginRight=&quot;1dip&quot;
              android:layout_weight=&quot;2&quot;
              android:gravity=&quot;start&quot;
              android:text=&quot;que_status&quot;
              android:textAppearance=&quot;?android:attr/textAppearanceSmall&quot; /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  <p>And I have added the list view in fragment layout</p>
  <pre><code>    &lt;ListView
         android:id=&quot;@+id/studentList&quot;
         android:layout_height=&quot;match_parent&quot;
         android:layout_width=&quot;match_parent&quot;
         android:choiceMode=&quot;singleChoice&quot;&gt;
      &lt;/ListView&gt;
  </code></pre>
  <p>And also in my fragment I have set the <code>mStudentListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);</code> to disable the multiple selection of the list view.</p>
  <p>But both options not working.</p>