NJDude Expert Licensed User Longtime User Apr 23, 2011 #1 Is it possible to change the background color of a TabHost?, I see it always defaults to greyish.
S susu Well-Known Member Licensed User Longtime User Apr 24, 2011 #2 It's not possible for now. Upvote 0
Z ZJP Active Member Licensed User Longtime User Apr 24, 2011 #4 It's possible. Maybe with the Reflection library? ( http://www.b4x.com/forum/additional-libraries-official-updates/6767-reflection-library.html ) android - How to change default color to Tab Host - Stack Overflow How do I change the background of an Android tab widget? - Stack Overflow Android TabHost Tutorial ? Part 2 | Androidpeople.com JP Last edited: Apr 24, 2011 Upvote 0
It's possible. Maybe with the Reflection library? ( http://www.b4x.com/forum/additional-libraries-official-updates/6767-reflection-library.html ) android - How to change default color to Tab Host - Stack Overflow How do I change the background of an Android tab widget? - Stack Overflow Android TabHost Tutorial ? Part 2 | Androidpeople.com JP
gapi Active Member Licensed User Longtime User Jun 1, 2012 #5 It's possible without Java code ? Any settings for change color of tabhost ? My is orange ... how can change it ? tnx Upvote 0
It's possible without Java code ? Any settings for change color of tabhost ? My is orange ... how can change it ? tnx
M Mahares Expert Licensed User Longtime User Jun 2, 2012 #6 If you install the TabhostExtras library in the additional libraries path and reference it, you can change the color of the tabhost indicator. Make sure you search in the forum for TabhostExtras to find the zip file that has the libray (jar and xml files). Here is a sample. You can use any RGB color combination you want: Code: Copy Dim TabHost1 As TabHost Dim MyTabHostExtra As TabHostExtras MyTabHostExtra.setTabGradientDrawable(TabHost1,"LEFT_RIGHT",Colors.RGB(167,0,80),Colors.RGB(95,158,160),6) Last edited: Jun 2, 2012 Upvote 0
If you install the TabhostExtras library in the additional libraries path and reference it, you can change the color of the tabhost indicator. Make sure you search in the forum for TabhostExtras to find the zip file that has the libray (jar and xml files). Here is a sample. You can use any RGB color combination you want: Code: Copy Dim TabHost1 As TabHost Dim MyTabHostExtra As TabHostExtras MyTabHostExtra.setTabGradientDrawable(TabHost1,"LEFT_RIGHT",Colors.RGB(167,0,80),Colors.RGB(95,158,160),6)