title: How to get access to the fields of custom adapter in ListView in Android?
body: <p>In my project I use a custom adapter to define the items of a ListView. So I want to define special behavior of item in ListView, which will be depend on the value of the field in adapter. Like this :</p>
  
  <pre><code>protected void onListItemClick(ListView l, View v, int position, long id) {
      super.onListItemClick(l, v, position, id);
  }
  </code></pre>
  
  <p>So, here, in this method I want to get access to the element of adapter to get the value from it, number of which is defined by the int position. So, what is code to do this? </p>