【问题标题】:How to place android "actionbar tab" at the bottom of the screen如何将android“actionbar tab”放在屏幕底部
【发布时间】:2014-04-23 04:44:57
【问题描述】:

我想创建底部ActionBar Tab,而不是SplitActionBarWhenNarrow。那么我可以将android ActionBarTab 放在屏幕底部吗?

谢谢。

【问题讨论】:

    标签: android tabs android-actionbar


    【解决方案1】:

    这可以通过设置自定义操作栏视图来实现,并像这样在 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?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-27
      • 2013-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-26
      • 2023-03-25
      相关资源
      最近更新 更多