0

I want to create bottom ActionBar Tab, not SplitActionBarWhenNarrow. So can I place the android ActionBarTab at the bottom of the screen?

Thanks.

AndyN
  • 1,742
  • 1
  • 15
  • 30
Min Thit Tun
  • 33
  • 1
  • 4

1 Answers1

0

This can be accomplished by setting a custom action bar view, and set layout params in the setupActionBar() like so,

    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));

More info here as this is a repeat question, How can I force the Action Bar to be at the bottom in ICS?

Community
  • 1
  • 1
Adam
  • 126
  • 1
  • 5