title: Android,Using ConvertView in Heterogeneous List Adapters?
body: <p><a href="http://developer.android.com/reference/android/widget/Adapter.html#getView%28int,%20android.view.View,%20android.view.ViewGroup%29" rel="nofollow noreferrer">Docs</a> say:</p>
  
  <blockquote>
    <p>... Heterogeneous lists can specify their number of view types, so
    that this View is <strong><em>always of the right type</em></strong> (see getViewTypeCount() and
    getItemViewType(int)).</p>
  </blockquote>
  
  <p>I tried <a href="http://android.amberfog.com/?p=296" rel="nofollow noreferrer">this way</a> to create <code>Heterogeneous List Adapters</code> and I had no problem.But I saw <a href="https://stackoverflow.com/questions/12018997/why-does-getview-return-wrong-convertview-objects-on-separatedlistadapter">this post</a> and <a href="http://sparetimedev.blogspot.com/2012/10/recycling-of-views-with-heterogeneous.html" rel="nofollow noreferrer">this web page</a>.They say it may be occurs problems:The wrong type of <code>ConvertView</code>.They propose to check if type of convertview is true or not? And this is inconsistent with Docs.</p>
  
  <p>My questions:</p>
  
  <p>When we ovrride <code>getViewTypeCount()</code> and <code>getItemViewType(int)</code> is it possible that convertview be from incorrect type?</p>