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:

enter image description here

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">

enter image description here

update 2 - problem still exist logo

this result, when use actionbarstyle add logo

enter image description here

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

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -