I am trying to create a rather radical tab redesign for my Android app. I want the tabs to be differently sized both in width and height, as well as having the focused tab have a shadow over the content as well as other tabs. However, I do not know how to change the height of tabs or the shadow cast by the focused tab. Can anyone help? Here's what I'm trying to achieve:
Asked
Active
Viewed 667 times
2
-
You want change the default TabHost Style? or to implement this style. – Changwei Yao May 04 '12 at 02:48
-
Was that answer useful. Have you tried with that method? – Praveenkumar May 04 '12 at 06:17
-
I am still trying to figure it out. It seems to be helping, however. Don't worry, you'll get credit :) – Elias Wu May 04 '12 at 06:31
1 Answers
1
If you want to customize your Tabhost with your custom style means, you've to customize it. For this case we can do with one feature -
1) Inflating the customized xml
file to main TabWidget's
using LayoutInflater
2) Do the changes whatever you need in your inflated xml file. For, this please refer below existing answer from stackoverflow. This will surely help you.

Community
- 1
- 1

Praveenkumar
- 24,084
- 23
- 95
- 173