title: Callbacks for Adapter interface in Android
body: <p>I was looking at the Adapter interface documentation at <a href="http://developer.android.com/reference/android/widget/Adapter.html" rel="nofollow">http://developer.android.com/reference/android/widget/Adapter.html</a>. I found that there are several callback methods that these interface has like </p>
  
  <p><strong>abstract Object    getItem(int position)</strong>
  Get the data item associated with the specified position in the data set.</p>
  
  <p><strong>abstract long  getItemId(int position)</strong>
  Get the row id associated with the specified position in the list.</p>
  
  <p><strong>abstract int   getItemViewType(int position)</strong>
  Get the type of View that will be created by getView(int, View, ViewGroup) for the specified item.</p>
  
  <p><strong>abstract int   getViewTypeCount()</strong>
  Returns the number of types of Views that will be created by getView(int, View, ViewGroup).</p>
  
  <p>which are usually not implemented. I haven't found their implementation an any of the
  Adapter interface implementations that I have come across.  The documentation fails to explain when they will be called and how they can be put to good use. No examples whatsoever. Would appreciate if someone can shed some light on them.</p>