title: setOnLongClickListener in android with kotlin
body: <p>How can I use <code>setOnItemClickListner</code> in each item in my <code>ListView</code>?</p>
  
  <p>my xml :</p>
  
  <pre><code>&lt;ListView
      android:id="@+id/tv1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
  &lt;/ListView&gt;
  </code></pre>
  
  <p>this my adapter class</p>
  
  <pre><code>inner class mo3d1Adapter : BaseAdapter {
      override fun getItemId(p0: Int): Long {
          return p0.toLong()
      }
  
      override fun getCount(): Int {
          return listOfmo3d.size
      }
  
      var listOfMkabala = ArrayList&lt;MeetingDetails&gt;()
      var context: Context? = null
  
      constructor(context: Context, listOfMkabaln: ArrayList&lt;MeetingDetails&gt;) : super() {
          this.listOfMkabala = listOfMkabaln
          this.context = context
      }
  
      override fun getView(p0: Int, p1: View?, p2: ViewGroup?): View {
          val mo3d = listOfmo3d[p0]
  
          var inflatormo3d = context!!.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
          var myViewmo3d = inflatormo3d.inflate(R.layout.fragment_item, null)
  
          lvMo3d.onItemClickListener = AdapterView.OnItemClickListener { adapterView, view, i, l -&gt;
              Toast.makeText(context, "   TEST STACK   ", Toast.LENGTH_LONG).show()
  
          }
  
  
          myViewmo3d.meeting_name.text = mo3d.name1!!
          myViewmo3d.meeting_date.text = mo3d.date.toString()!!
          myViewmo3d.attendance_number.text = mo3d.n2.toString()!!
  
  
  
          return myViewmo3d
  
  
      }
  
      override fun getItem(p0: Int): Any {
          return listOfmo3d[p0]
  
      }
  
  
  }
  </code></pre>
  
  <ul>
  <li>I want listener for each item in my <code>ListView</code></li>
  </ul>
  
  <p>And when I used this method <code>setOnClickListener</code> in adapter it's not working, where can I use?</p>