Android Tech

The more we share, the more we get

TabView (Part 6) – TabView with transparent background

As you can see below, when load a default tab control, you will have a default background with black color for each tabview.

So, sometime you want a transparent background for all tab, so that user can see your beautiful background image. It’s very simple to do that. I’ll use a simple tab control example and insert this function. You insert this code to main activity:

for(int i = 0; i < tabHost.getTabWidget().getTabCount(); i++)

And the result will like this:

You can download the source code from here


One response to “TabView (Part 6) – TabView with transparent background

  1. Pingback: Anonymous

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: