title: Is it possible to add a variable in the getview adapter function by overriding it?
body: <p>How to refer to adapter in the getview (of a listview)  with this google syntax :</p>
  <pre><code>fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
      return (convertView ?: layoutInflater.inflate(R.layout.my_layout, parent, false)).apply {
          // … bind content from position to convertView …
          //personal comment : &quot;this&quot; does not refer to adapter
      }
  }
  </code></pre>
  <p>Indeed, after the .apply, I have to call adapter in order to make an <code>adapter.notifyDataSetChanged()</code>.</p>
  <p>With a &quot;classic syntax&quot;, adapter could be called thanks to &quot;this&quot;, that is impossible with google syntax.</p>
  <p>&quot;Classic syntax&quot;</p>
  <pre><code>fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
  
  ....
  
  //&quot;this&quot; (refers to adapter)
  
  return convertView
  }
  </code></pre>
  <p>So is it possible to overriding the getview function to add variable in the signature ? Else, what is the solution of my problem ?</p>