Is there an easy way to tell which layout was inflated to create a convertview in an Adapter?
<p>I have a custom abstract adapter that extends BaseAdapter.  Is there a magical way to detect  (from a child class of this adapter) what layout resource was used to inflate the convertView that is passed to getView(..)?</p>

<pre><code>public View getView(int position, View convertView, ViewGroup parent) {
  // TODO what resource was inflated for this convertView if its not null?
}
</code></pre>

<p>I could probably do it by setting an ID on the top level element of each of the potential views (the top level element may be the same Layout for all of the potential views) - but am hoping there is a "magic" trick for this.</p>
