title: Android How to center title of top actionBar?
body: <p>To start my objective is to center my title. I have started a project by selecting the bottom navigation activity template. This came with 3 fragments and a main activity. I am attempting to center the title of the top action bar. I have attempted to access the mobile_navigation by id and align the text within the MainActivity but this does not seem to work. I also tried adding a textAlignment attribute in the homeFragment.xml but this did not work either. I do not find any similar scenarios anyone know how could I be able to resolve this?</p>
  
  <p>mobile_navigation.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;navigation 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/mobile_navigation"
      app:startDestination="@+id/navigation_home"&gt;
  
      &lt;fragment
          android:id="@+id/navigation_home"
          android:name="com.Example.exmaple.ui.home.HomeFragment"
          android:label="@string/app_name"
          tools:layout="@layout/fragment_home" /&gt;
  
      &lt;fragment
          android:id="@+id/navigation_dashboard"
          android:name="com.Example.exmaple.ui.dashboard.DashboardFragment"
          android:label="@string/title_dashboard"
          tools:layout="@layout/fragment_dashboard" /&gt;
  
      &lt;fragment
          android:id="@+id/navigation_notifications"
          android:name="com.Example.exmaple.ui.notifications.NotificationsFragment"
          android:label="@string/title_notifications"
          tools:layout="@layout/fragment_notifications" /&gt;
  &lt;/navigation&gt;
  </code></pre>
  
  <p>I also attempted to add:</p>
  
  <pre><code>android:gravity="center"
  </code></pre>
  
  <p>Any feedback welcomed.</p>