我有一个从右到左打开的导航抽屉,一切正常,汉堡图标工作正常,它位于右上角,但菜单图标位于菜单项的左侧.
如何将它们移动到菜单项的右侧?
请看屏幕截图
这是我的menu.xml
android:id="@+id/nav_home"
android:icon="@drawable/ic_navigation_home"
android:title="@string/nav_menu_home" />
android:id="@+id/nav_profile"
android:icon="@drawable/ic_menu_profile"
android:title="@string/nav_profile" />
android:id="@+id/nav_help"
android:icon="@drawable/ic_navigation_help"
android:title="@string/nav_help" />
android:id="@+id/nav_manage"
android:icon="@drawable/ic_menu_manage"
android:title="@string/nav_manage" />
android:id="@+id/nav_logout"
android:icon="@drawable/ic_logout"
android:title="@string/nav_logout" />
android:id="@+id/nav_facebook"
android:icon="@drawable/ic_facebookx"
android:title="@string/nav_face_page" />
android:id="@+id/nav_send"
android:icon="@drawable/ic_menu_send"
android:title="@string/nav_contact" />
这是我的布局
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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
我搜索了很多,但没有找到任何与此问题相关的内容.
提前致谢.