title: Set default highlighted item in custom listview adapter (kotlin)
body: <p>I would like use setItemChecked to highlight list item by default. checkedItemPosition set the checkedItemPosition but not item list is highlighted.</p>
  
  <p>Here is my array adapter code :</p>
  
  <pre><code>class MyListAdapter(
      context: Context,
      private val myItemList: List&lt;Mytem&gt;)
  : ArrayAdapter&lt;Mytem&gt;(context, R.layout.item_simple, myItemList) {
  
  override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
      val inflater = context
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
  
      val rowView: View?
  
      if (!myItemList[position].isHeader) {
          rowView = inflater.inflate(R.layout.item_simple, parent, false)
          rowView.itemTitle.text = myItemList[position].name
      } else {
          rowView = inflater.inflate(R.layout.item_header_group, parent, false)
          rowView.header.text = myItemList[position].name
      }
      return rowView
  }
  
  override fun isEnabled(position: Int): Boolean {
      return !myItemList[position].isHeader
  }
  }
  </code></pre>
  
  <p>In fragment I have the following code :</p>
  
  <pre><code>override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
  
      this.viewModel.myListItem.observe(this, Observer&lt;List&lt;MyItem&gt;&gt; { item -&gt;
          val adapter = MyListAdapter(this.view!!.context, item!!)
  
          this.view!!.listViewFragment.adapter = adapter
          this.view!!.listViewFragment.divider = null
          this.view!!.listViewFragment.isClickable = true
      })
  }
  
  override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
                            savedInstanceState: Bundle?): View? {
      return inflater.inflate(R.layout.fragment_listview, container, false)
  }
  
  
  override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
      super.onViewCreated(view, savedInstanceState)
  
      view.validatePenChoiceButton.setOnClickListener {
          viewModel.validate(this.view!!.listViewFragment.checkedItemPosition)
      }
  }
  </code></pre>
  
  <p>The listview cml code :</p>
  
  <pre><code>&lt;ListView
      android:id="@+id/listViewFragment"
      android:layout_width="match_parent"
      android:layout_height="0sp"
      android:layout_weight="30"
      android:choiceMode="singleChoice"
      android:listSelector="@color/item_listSelector_color"
      android:textColor="@color/white" /&gt;
  </code></pre>
  
  <p>I have try the following methodes : the checkitem is changed but the listview is not highlighted.</p>
  
  <pre><code>  this.view!!.listViewFragment.setItemChecked(3, true)
  </code></pre>
  
  <p>And I have test this :</p>
  
  <pre><code>  this.view!!.listViewFragment.refreshDrawableState()
    this.view!!.listViewFragment.invalidateViews()
  </code></pre>
  
  <p>How I can set default highlighted item properly ?</p>