Open yaoxin2017 opened 6 years ago
当tab的名字太长会多行显示,怎么样限制一行显示?
我试过 xTablayout.addTab(xTablayout.newTab().setText(title)); 和这样设置 xTablayout.addTab(xTablayout.newTab().setCustomView(txtView));
但是当文本过长时,都会多行显示,怎么样单行显示?
Tab宽度设置长一点或者字体设置小一点
当tab的名字太长会多行显示,怎么样限制一行显示?
我试过 xTablayout.addTab(xTablayout.newTab().setText(title)); 和这样设置 xTablayout.addTab(xTablayout.newTab().setCustomView(txtView));
但是当文本过长时,都会多行显示,怎么样单行显示?