Draw icon on Fragment tabHost
<p>I'm trying draw a view that include both text and icon in Tag by this way:</p>

<pre><code>private void setTag(){

    int count = mTabClassArray.length;
    for (int i = 0; i &lt; count; i++) {
        View v = getIndicatorView(i);
        m_tabHost.addTab(m_tabHost.newTabSpec(mTabTextArray[i])
                .setIndicator(v), mTabClassArray[i], null);
    }

}


private View getIndicatorView(int i) {
    View v = getLayoutInflater().inflate(tagID[i], null,
            false);
    return v;
}
</code></pre>

<p>tagID is an array include some layout's id. and the code is working  .but when I want change page by click tag. it's can't  response soon..  if  I replace the v that in setIndicator(v)  by using text.  like this  setIndicator("space")  the problem will gone..
I don't know why  and I want know more effective way to  draw a icon in fragment tabHost
need help:). </p>
