Change icon in tab when it is active

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Change icon in tab when it is active

Postby Myles » Thu Dec 04, 2008 2:19 pm

This is not so much a problem, more a question about how to achieve something...

I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an exact copy but in grayscale.

What I want to do is have the coloured version of the icon displayed when the tab is active i.e. being viewed. Otherwise I want the other inactive tabs to show the grayscale version of their icon - and change to the coloured version if they are clicked.

So I want a tab to show a coloured icon if active and a grayscale icon if inactive...

Any ideas how to achieve this anyone?

Thanks,

-Miles
Myles
Freshman
Freshman
 
Posts: 3
Joined: Thu Dec 04, 2008 2:13 pm

Top

Postby Myles » Fri Dec 05, 2008 1:01 am

Anyone?
Myles
Freshman
Freshman
 
Posts: 3
Joined: Thu Dec 04, 2008 2:13 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests