AndroidKun / XTabLayout

Added support to modify text size and indicator width based on the original TabLayout.
666 stars 109 forks source link

当tab的名字太长会多行显示,怎么样限制一行显示? #30

Open yaoxin2017 opened 6 years ago

yaoxin2017 commented 6 years ago

当tab的名字太长会多行显示,怎么样限制一行显示?

我试过 xTablayout.addTab(xTablayout.newTab().setText(title)); 和这样设置 xTablayout.addTab(xTablayout.newTab().setCustomView(txtView));

但是当文本过长时,都会多行显示,怎么样单行显示?

AndroidKun commented 6 years ago

Tab宽度设置长一点或者字体设置小一点