Android Question TabStrip: tabsize

Discussion in 'Android Questions' started by diego, Aug 13, 2018.

  1. diego

    diego Member Licensed User

    with TabHost you can see all the tabs in the screen (for example if you have 7 tabs they shrink to fit), but with TabStrip you need to hide some tabs by moving left-right, as they seem to have a fixed width.

    Is there any way to minimize tab width to "1 char" (in case you use a fontawesome icon)?

    thanks
     
  2. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    diego likes this.
  3. diego

    diego Member Licensed User

    Great! I'll try it, thanks

    Width as Int, should be indicated in dip or 20%x for example?
     
  4. Alexander Stolte

    Alexander Stolte Well-Known Member Licensed User

    that does not matter, you can also calculate how big the "width" is from the icon.
     
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