Changing tab indicators to a view in a tab widget?

Posted by user246114 on Stack Overflow See other posts from Stack Overflow or by user246114
Published on 2010-03-09T05:48:55Z Indexed on 2010/03/09 5:51 UTC
Read the original article Hit count: 140

Filed under:

Hi,

I have a layout which requires a tab widget containing two tabs. Ideally I'd like to have each tab just be a completely flat colored rectangle, side by side. Almost exactly like the buttons you see at the top of this web page titled:

"Questions" | "Tags" | "Users" | "Badges" | "Unanswered"

but without the whitespace in between. I'd like to have the highlighted tab have a brighter background color.

Is this possible using the tab widget? I know in 1.6+ there's a method to specify a view for the tabs themselves, but can I achieve this tight look, or should I just roll my own?

Thanks

© Stack Overflow or respective owner

Related posts about android-sdk