title: Android NaviagtionDrawer Item Text Alignment
body: <p>I am created NavigationView Like this
  <a href="https://i.stack.imgur.com/eKj16.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eKj16.png" alt="My Navigation View ScreenShot"></a></p>
  
  <p>,and this is my xml code</p>
  
  <pre><code>&lt;RelativeLayout 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/top_parent"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:fitsSystemWindows="true"
  tools:context=".Dashbored"&gt;
  
  &lt;include
  android:id="@+id/tool_bar"
  layout="@layout/tool_bar"&gt;
  &lt;/include&gt;
  
  &lt;android.support.v4.widget.DrawerLayout
  android:id="@+id/drawer_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:layout_below="@+id/tool_bar"
  android:elevation="7dp"
  android:fitsSystemWindows="true"
  tools:openDrawer="end"&gt;
  
  
  &lt;LinearLayout
  android:id="@+id/linear_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"&gt;
  
  
  &lt;FrameLayout
  android:id="@+id/frame_container"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;include layout="@layout/f_home_screen" /&gt;
  
  &lt;/FrameLayout&gt;
  
  
  &lt;/LinearLayout&gt;
  
  &lt;android.support.design.widget.NavigationView
  android:id="@+id/nav_view"
  android:layout_width="wrap_content"
  android:layout_height="match_parent"
  android:layout_gravity="end"
  android:background="#0284fe"
  android:fitsSystemWindows="true"
  app:headerLayout="@layout/nav_header"
  app:itemBackground="@drawable/drawer_backg"
  app:itemIconTint="@color/drawer_item"
  app:itemTextAppearance="@style/NavDrawerTextStyle"
  app:itemTextColor="@color/windowBackground"
  app:menu="@menu/main_drawer" /&gt;
  
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  &lt;/RelativeLayout&gt;   
  </code></pre>
  
  <p>I want to set Item text alignment center like this</p>
  
  <p><a href="https://i.stack.imgur.com/AlUjb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AlUjb.png" alt="I need a output like this"></a></p>
  
  <p>This is my menu xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;menu 
  xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;group android:checkableBehavior="single"&gt;
  &lt;item
  android:id="@+id/nav_inspec_rpt"
  android:title="INSPECTION REPORTS"
  /&gt;
  &lt;item
  android:id="@+id/nav_action"
  android:title="ACTION ITEMS"
  /&gt;
  &lt;item
  android:id="@+id/nav_appoint"
  android:title="APPOINTMENTS" /&gt;
  &lt;item
  android:id="@+id/nav_applst"
  android:title="MAIN APPOINTMENTS" /&gt;
  &lt;item
  android:id="@+id/nav_logout"
  android:title="LOG OUT" /&gt;
  &lt;/group&gt;
  </code></pre>
  
  <p>I want to get output like second Image, please help me, I tried to give styles in style.xml like this, but I don't know how to align text, I tried it a different way by google it, but no luck. :(</p>
  
  <pre><code>&lt;style name="NavDrawerTextStyle" parent="Base.TextAppearance.AppCompat"&gt;
  &lt;item name="android:textColor"&gt;@color/colorPrimaryDark&lt;/item&gt;
  &lt;item name="android:textSize"&gt;16dp&lt;/item&gt;
  &lt;item name="android:fontFamily"&gt;serif&lt;/item&gt;
  &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Thanks</p>