1

I want to change the position of the action bar content (Computer,Gamepad..) like in this photo, under the action bar.

enter image description here

In my application the content start at the top of the screen.

Thanks

N J
  • 27,217
  • 13
  • 76
  • 96
androidboy
  • 11
  • 2
  • "i want to change the position of the action bar icons like in this photo, under the action bar" -- there is only one "action bar icon" in the photo. It looks like a phone. It is *in* the action bar, not *under* the action bar. Please provide a screenshot that shows "action bar icons like in this photo, under the action bar", or update your description to better match your existing screenshot. – CommonsWare Jun 15 '15 at 16:46

2 Answers2

0

You want to use: android:orderInCategory="100"

The higher the number, the further down it is on the list. Go by 100's

Example:

<menu
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context=".MainActivity">
    <item
        android:id="@+id/action_date"
        android:icon="@mipmap/ic_event"
        android:orderInCategory="100"
        android:title="Date Change"
        app:showAsAction="never"/>
    <item
        android:id="@+id/action_search"
        android:icon="@mipmap/ic_search"
        android:orderInCategory="200"
        android:title="Search"
        app:showAsAction="never"/>
</menu>
Eugene H
  • 3,520
  • 3
  • 22
  • 39
0

Here is the answer for your question, so you just cant because of Material Design

Community
  • 1
  • 1
tarasmorskyi
  • 285
  • 2
  • 14