title: how to get position of clicked item in OnClickListener of Listview?
body: <p>I want to get selected listview item onclicked listner of listview.</p>
  <p>Right now I have implemented <code>onItemClickListener</code> but when I click on an item text then it is raised. I want to raise it on a listview row click.</p>
  <p>Any idea how to achieve this? To get the text value of the list onClick listener?</p>
  <pre><code>lv1.setOnItemClickListener(new OnItemClickListener() {
  
              @Override
              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
                  String value = lv1.getAdapter().getItem(position).toString();
                  //display value here 
                  
                  }
                });
  </code></pre>
  <p><img src="https://i.stack.imgur.com/dbuN1.png" alt="" />
  <img src="https://i.stack.imgur.com/B1Jmm.png" alt="" /></p>