【发布时间】:2014-04-23 04:44:57
【问题描述】:
我想创建底部ActionBar Tab,而不是SplitActionBarWhenNarrow。那么我可以将android ActionBarTab 放在屏幕底部吗?
谢谢。
【问题讨论】:
标签: android tabs android-actionbar
我想创建底部ActionBar Tab,而不是SplitActionBarWhenNarrow。那么我可以将android ActionBarTab 放在屏幕底部吗?
谢谢。
【问题讨论】:
标签: android tabs android-actionbar
这可以通过设置自定义操作栏视图来实现,并像这样在 setupActionBar() 中设置布局参数,
actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM,
ActionBar.DISPLAY_SHOW_CUSTOM);
actionBar.setCustomView(v,
new ActionBar.LayoutParams(ActionBar.LayoutParams.WRAP_CONTENT,
ActionBar.LayoutParams.WRAP_CONTENT,
Gravity.CENTER_VERTICAL | Gravity.RIGHT));
更多信息在这里,因为这是一个重复的问题,How can I force the Action Bar to be at the bottom in ICS?
【讨论】: