title: Android Kotlin how to check checkbox in multiple choice list view
body: <p>I have a multiple choice list view. I wanting to check some of the checkboxes but not all of them. I am trying the code below but not sure where to go from there, or if that is even a start.</p>
  
  <pre><code>val listView = findViewById&lt;ListView&gt;(R.id.mylist_listview)
          val values = arrayOf("One", "Two", "Three")
  
          val list = ArrayList&lt;String&gt;()
          for (i in values.indices) {
              list.add(values[i])
          }
          val adapter = ArrayAdapter(this,
                  android.R.layout.simple_list_item_multiple_choice, list)
          listView.setAdapter(adapter)
  
  
          val cntChoice = listView.getCount()
  
          for (i in 0 until cntChoice) {
  
              listView. //Something to check boxes 
  
              }
  
          }
  </code></pre>