title: How to center the page title in ConstraintLayout
body: <p>I am using ConstraintLayout to show the page, and I can't find the way to make the title at center of the bar. I didn't use the action bar or tools bar. The solution I found online is all about add a label on active bar which I don't have. </p>
  
  <p>Here is the layout:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout
      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_centerHorizontal="true"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_gravity="right"
      tools:context="com.spydertrap.occexample.MainActivity"
      tools:layout_editor_absoluteY="81dp"
      tools:layout_editor_absoluteX="0dp"&gt;
  
      &lt;android.support.constraint.Guideline
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/guideline2"
          android:orientation="vertical"
          app:layout_constraintGuide_percent="0.5"
          tools:layout_editor_absoluteY="0dp"
          tools:layout_editor_absoluteX="206dp" /&gt;
  
  
      &lt;android.support.v7.widget.CardView
          android:id="@+id/cardView2"
          android:layout_height="150dp"
          android:layout_width="0dp"
          app:layout_constraintRight_toLeftOf="@+id/guideline2"
          android:layout_marginRight="8dp"
          android:layout_marginLeft="8dp"
          app:layout_constraintLeft_toLeftOf="parent"
          android:layout_marginTop="8dp"
          app:layout_constraintTop_toBottomOf="@+id/cardView"
          android:layout_marginStart="8dp"
          android:layout_marginEnd="8dp"&gt;
  
          &lt;ImageView
              android:id="@+id/imageView3"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:scaleType="centerCrop"
              android:layout_marginBottom="50dp"
              app:srcCompat="@drawable/resource" /&gt;
  
          &lt;TextView
              android:id="@+id/textView3"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="116dp"
              android:layout_marginLeft="10dp"
              android:textAppearance="@style/CardSubTitle"
              android:text="Resource Center" /&gt;
      &lt;/android.support.v7.widget.CardView&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>and the activity is pretty simple:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          setTitle("Dashboard");
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/vcBXz.png" rel="nofollow noreferrer">This title needs to be centered</a></p>
  
  <p>any help will be appreciated!!</p>