1

Possible Duplicate:
Android - iphone style tabhost

I am trying to figure out how to achieve a tab bar look and feel like the one provided in the iOS for android applications? I am using the normal one but it makes my application to look old school. I would like to achieve the same visual experience as the image below:

http://www.android.com/market/data/screenshots/com.i2.android.brasileirao.activity0.png

I have also looked at mobyfactory-uiwidgets-android bu they are far from being equal to the one in the image.

Thanks T

Community
  • 1
  • 1
Thiago
  • 5,152
  • 11
  • 35
  • 44

1 Answers1

2

There's nothing that says the TabHost in a tabbed layout needs to be above the tab content area, so feel free to stick it wherever. But please don't put tabs on the bottom just because you can; Android users aren't used to this and you need to have a better reason than "it looks old-school" for violating UX expectations.

If you just want to fix the look of individual tabs themeselves, you can use TabSpec's setContent(View v) method to setup a custom view for a tab. Also see the source code to the Google IO 2010 Schedule app. You can definitely spruce up tabs this way in lots of good ways without messing about with user's understandings of what Android tabs are and how they function.

Yoni Samlan
  • 37,905
  • 5
  • 60
  • 62
  • I didnt know about the bottom part, i will be carefull with my tab bar, i dont want to disrespect android's UX expectations, just wanna make my apps look better. I will take a look at the course code. Thanks a lot Yoni! – Thiago Nov 01 '10 at 17:35