0

How can I make an action bar like this: enter image description here

Add: My current implement:

    <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/action_cancel"
          android:icon="@drawable/ic_action_cancel"
          android:showAsAction="ifRoom|withText"
          android:title="@string/action_cancel"
            />
    <item android:id="@+id/action_accept"
          android:icon="@drawable/ic_action_accept"
          android:showAsAction="ifRoom|withText"
          android:title="@string/action_accept"
            />
</menu>

and it now looks like: enter image description here

Mikolaj
  • 688
  • 8
  • 19
Thanh Le
  • 1,370
  • 2
  • 19
  • 30

1 Answers1

1

Ok buddy. Thing you're looking for is known as "Split Action Bar".

Check this out, this link has multiple actionbar example. It also has "Split Action Bar" tutorial. It might not be the exact same thing you want, but you should be able to figure your way out.

Hit like, if this helps you out.

Let me know of any other question.

Dushyant Patel
  • 687
  • 8
  • 20
  • Thanks for your link. You are very kind person. But I already know how to split action bar. But I don't know how to make action bar looks like the fist image that I posted. I mean that two actions will be centered and show with text. Can you help me in this situation. I'm reading your link. Thanks. – Thanh Le Feb 13 '14 at 03:46