I used the TabHost component (and TabWidget ) in the way it was suggested to me in this topic: How to add tabs to TabHost from Java code?

But there was another problem. How can I get the correct display of the band below the TabWidget component? Now I don’t have any band there at all. Although I wrote this code:

 tabWidget.setStripEnabled(true); tabWidget.setRightStripDrawable(right_id); tabWidget.setLeftStripDrawable(left_id); 

alt text

    2 answers 2

    These tabs are fully customizable. For example, you can do as in the iPhone:

    Iphone-tab-in-android

      I understand that for sure the topstarter is no longer needed, but maybe. I ran into a similar problem - I will write the answer.

      How can I get the correct display of the bar at the bottom of the TabWidget component?

      Somewhere in the code there is something like this piece of code or a similar one:

       spec = tabHost.newTabSpec( ... ); spec.setContent( ... ); spec.setIndicator( ... ); tabHost.addTab(spec); 

      so: setting everything related to your "Strip" - namely

       tabWidget = tabHost.getTabWidget(); tabWidget.setStripEnabled(true); tabWidget.setRightStripDrawable(right_id); tabWidget.setLeftStripDrawable(left_id); 

      should go after you set the view for bookmarks.

      That's because when you assign a "custom view", the framework calls tabWidget.setStripEnabled (false)