android - Avoid word wrap (and "...") in long tab titles using ViewPager Tab [landscape] -
how avoid word wrap , incomplete tab titles ( 3 '...') in tabs using viewpager
see screenshot below:

update
when set following in styles.xml:
<style name="mytabtextstyle" parent="base.widget.appcompat.actionbar.tabtext"> <item name="android:maxlines">1</item> <item name="android:width">80dp</item> </style> it partly works when i not add logo in actionbarstyle:
<style name="myactionbarstyle" parent="widget.appcompat.actionbar.solid">

update 2 - problem still exist logo
this result, when use actionbarstyle add logo

thank in advance
the problem in width of tabtext widget:
<item name="android:width">80dp</item> as see 80dp enough content, - it's not. should avoid using fixed width or height. instead can use wrap_content (wide or high enough fit content) , match_parent (match parent size exactly, possibly leaving lot of "blank space") values.
Comments
Post a Comment