マイプロジェクトスクリーンショット:My Projectナビゲーションテキストのアイコンをアイテムテキストの右側に設定するにはどうすればよいですか?
私のターゲットデザイン:My Target
私は(右から左)のナビゲーション引き出しを作成しました。それはうまくいきますが、アイコンを左側から右側に移動しようとしているときは機能しません。
<android.support.v4.widget.DrawerLayout 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:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="@layout/app_bar_main"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="250dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:background="@color/nav"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:itemIconTint="#d2a967"
app:itemTextColor="#d2a967"
app:menu="@menu/activity_main_drawer" />
注意:私のAPIは、私はアクションバーには、このような機能を提供する場合わからない14+
[this](https://stackoverflow.com/questions/40101725/make-a-rtl-navigation-drawer-in-android)を参照すると、彼のようなカスタムツールバーを作成できます。 –
この回答を参照してください... https://stackoverflow.com/questions/18547277/how-to-set-navigation-drawer-to-be-opened-from-right-to-left –
これを試してくださいhttps:// stackoverflow .com/a/33464417/8476022 –