Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we set a background image to tabs?

Can we set a background image to tabs like this?

alt text

like image 603
neha Avatar asked Jan 21 '11 07:01

neha


People also ask

How do I change the new tab background in Firefox?

You need to use code in userContent. css in the chrome folder to set a background to about:newtab and possibly to about:home. Best (easiest) is to place this image in the chrome folder. In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.

How do I change the new tab background in edge?

Step 1: On the new tab page of Edge, click on the gear/settings icon. This will open the Page layout flyout. Step 2: Click on the Custom option. Step 3: Finally, in the Background section, select the Off radio button to prevent Edge from displaying a picture as the new tab page background.


1 Answers

Following code worked for me:

 tabHost.getTabWidget().setBackgroundResource(R.drawable.tabhost_bg);
like image 160
neha Avatar answered Sep 19 '22 03:09

neha