title: Horizontally center align two textviews in a layout
body: <p>I need to horizontally align two <code>textview</code> in the center of the screen. Both <code>textviews</code> have different font size.</p>
  
  <p><img src="https://i.stack.imgur.com/YYMMF.jpg" alt="enter image description here"></p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:gravity="top|center_horizontal"
      android:orientation="horizontal" &gt;
  
      &lt;TextView
          android:id="@+id/progressstatus"
          android:layout_gravity="center_horizontal"
          android:textColor="#FFFFFF"
          android:textSize="50sp"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"/&gt;
  
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/percent"
          android:textColor="#CCCCCC"
          android:textSize="20sp" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Right now my textviews are aligned left and both are showing same font size.</p>