Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在我的应用程序中使用导航选项卡实现了 sherlock 操作栏。我已使用样式属性将选项卡文本属性设置为单行。我的问题是夏洛克操作栏裁剪选项卡文本。例如,它不显示“我的帐户”,而只显示“我的”。如何显示整个选项卡文本,操作栏是可滚动的。
如果您使用过这种方式,那么它会显示您的全名,如下所示
Tab tab1 = actionBar .newTab() .setText("Tab1 - this is detail of main screen") .setTabListener( new TabListener<TabFragment>(this, "tab1", TabFragment.class)); actionBar.addTab(tab1);