Android change Tab image (not backgound)
<p>I am using a TabHost which has 3 tabs. Each tab has a image + text.</p>

<pre><code>spec = tabHost.newTabSpec("MyTasks")
           .setIndicator(Html.fromHtml("&lt;b&gt;&lt;H2&gt;My Tasks&lt;/H2&gt;&lt;/b&gt;"),  getResources().getDrawable(R.drawable.task ))
               .setContent(intent);    
   tabHost.addTab(spec); 
</code></pre>

<p>I want to change image when I select a tab. I used following code to change it ...</p>

<pre><code> TabWidget tw = getTabWidget(); 
   View leftTabView = tw.getChildAt(0); 
   leftTabView.setBackgroundDrawable(getResources().getDrawable(R.drawable.tab1_drawable)); 
</code></pre>

<p>tab1_drawable is  a xml (selector and items for each state). THIS IS SETTING AND CHANGING BACKGROUND NOT THE IMAGE I SET. How can I change it?</p>
