title: Android Custom Toolbar centering with back/menu buttons
body: <p>I thought this would be a simple task but oh Android, why is this so hard :facepalm:</p>
  
  <p>I have this custom Toolbar layout</p>
  
  <pre><code>&lt;android.support.v7.widget.Toolbar
      ....width/height stuff&gt;
      &lt;ConstraintLayout
        ....width/height stuff&gt;
          &lt;LinearLayout
              android:layout_width="0dp"
              android:layout_height="0dp"
              android:orientation="vertical"
              android:gravity="center"
              ...start_toStartOf="parent"
              ...end_toEndOf="parent"
              ...top_toTopOf="parent"
              ...bottom_toBottomOf="parent"&gt;
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Hello World!"/&gt;
          &lt;/LinearLayout&gt;
      &lt;/ContstraintLayout&gt;
  &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>
  
  <p>This works fine if I don't put HomeAsUpButton or a menu item(s).</p>
  
  <p>This screenshot shows how it's not centered when I put a back button
  <a href="https://i.stack.imgur.com/MRxSf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MRxSf.png" alt="enter image description here"></a></p>
  
  <p>This back button is not part of my Toolbar layout because I want my toolbar implementation to be as 'raw' as possible.</p>
  
  <p>Back button is added by</p>
  
  <pre><code>actionBar.setDisplayHomeAsUpEnabled(true);
  actionBar.setDisplayShowHomeEnabled(true);
  </code></pre>
  
  <p>and it pushes my layout to right.</p>
  
  <p><strong>Q: Is there any way I can ignore left button or menu buttons that will be added to the right, and center the TextView? Do I really have to hack it and make my own Left Button/menu-like layout?</strong></p>
  
  <p>If my question is unclear, please let me know and I'll elaborate.</p>
  
  <p>Thank you in advance.</p>