Android 是否将菜单项向左对齐?

Android 是否将菜单项向左对齐?,android,xml,menu,Android,Xml,Menu,如何改变菜单项的方向?这就是我当前的menu.xml的样子: <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:

如何改变菜单项的方向?这就是我当前的menu.xml的样子:

<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_settings"
    android:title="@string/action_settings"
    android:orderInCategory="100"
    app:showAsAction="never" />

<item android:id="@+id/chat_delete"
    android:title="delete"
    android:icon="@drawable/ic_chevron_left"
    app:showAsAction="always"
    android:orderInCategory="1"
    />


但是,我想让chat_delete元素一直向左移动。这可以通过xml实现吗?

我认为您需要创建自定义的ActionBar/工具栏来实现。使用此解决方案