我只想在我的TabLayout的选项卡中使用文本。不幸的是,默认情况下,制表符非常大,文本非常小。我没有办法调整文本的大小或标签的高度,没有使用TabSpec.setIndicator(View)
;这将是非常不可取的,因为那时我会定义一个特定的布局,选择器,选定的图像,未选中的图像等等,所以我的选项卡不适合每个设备的外观和感觉。有没有一种方便的方式来定制Tab外观?Android:漂亮的TabLayout?
mTabHost.addTab(mTabHost.newTabSpec("system").setIndicator("My first tab").setContent(R.id.fileBrowserTabHostSystemList));
mTabHost.addTab(mTabHost.newTabSpec("recent").setIndicator("My Second tab").setContent(R.id.fileBrowserTabHostRecentList));
这是我遇到的最好的例子:http://joshclemm.com/blog/?p=136 – Smith3 2011-05-25 14:58:46
我真的不喜欢这样做,因为我想我的选项卡使用本地外观和感觉。 – ab11 2011-05-25 17:42:48