tags:

views:

93

answers:

2

Hello people,

i'd like to have iPhone similar tabbar in my Android-Applications or to write my own tabbar.

I found already, how to place tabs at screen's bottom. It's really easy.

I found this tutorial as well, which looks very nice, but it works (is it true?!) only on SDK 1.6 and later, because of setIndicator(View v)

But maybe anybody know easy possibility to do iPhone-like tabbar or can send some links?!

Thank you,

Mur

+1  A: 

Android 1.5 cannot do what you want with TabHost and TabWidget, and Android 1.5 is on less than 10% of existing phones.

Your options are:

  1. Support Android 1.6 and newer
  2. Do not use "iPhone similar tabbar"
  3. Write your own tab mechanism, perhaps using ViewFlipper as a foundation, that looks however you want
  4. Use reflection or conditional class loading to support your desired look on 1.6 yet gracefully degrade to something else for 1.5
CommonsWare