title: How to get tapped List Item position in Adapter class on button click
body: <p>I am trying to get tapped list item position in Adapter class on button click, but did not get any success</p>
  
  <p>First of all i have to get tapped list item and then want to delete that row</p>
  
  <p>getting something like this: <code>D/strPosition::-(1922): com.and.field.Transport@b3ddf5c0</code></p>
  
  <p>using below code:</p>
  
  <pre><code>viewHolder.btnDelete.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(final View v) {         
  
                  strPosition = arrayList.get(position).toString();
                  Log.d("strPosition::-", strPosition);
  
                  // and then want to delete that row using tapped position
  
                  strName = arrayList.get(position).getName().toString();                         
  
              }
          });
  </code></pre>