Android Question How to hide a tab in StdActionBar

Discussion in 'Android Questions' started by Juzer Hussain, Aug 14, 2018.

  1. Juzer Hussain

    Juzer Hussain Active Member Licensed User

    Hi,

    I need to show/hide few tabs in stdActionBar, is it possible?
    I tried TabHost but it shows 3 tabs per line.

    I need a way out with stdActionBar.

    Pls inform if anyone has any idea.

    Thanks
     
  2. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

    RemoveTabs and create new set using AddTab
     
  3. Juzer Hussain

    Juzer Hussain Active Member Licensed User

    Thanks Semen. TabHost or TabHostExtra does not help. I used AddTab with it. Shows 3 Tabs fixed in one line.
    Can we define how many tabs to show in one line in TabHost?
     
  4. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

  5. Juzer Hussain

    Juzer Hussain Active Member Licensed User

    Thanks Semen, Floating Tab is good. I will upgrade to recently purchased 8.0 and try this out.
    Juzer
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice