title: Android - Align different font-sizes on same baseline
body: <p>I have 2 adjacent <code>TextView</code>s, each with a different string that has a different font size. I want the text to have the same baseline in each <code>TextView</code>. How can I do this?</p>
  
  <p>Here is my layout:</p>
  
  <pre><code>   &lt;LinearLayout
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
          &lt;TextView
              android:background="@color/colorAccentLight"
              android:textSize="18sp"
              style="@style/Base.TextAppearance.AppCompat.Medium"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:gravity="bottom"
              android:textAlignment="gravity"
              android:text="30"
          /&gt;
          &lt;TextView
              android:background="@color/colorAccent"
              android:text="hello"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:gravity="bottom"
              android:textAlignment="gravity"
          /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here is the current behavior, notice how the 2 <code>TextView</code>s have different baselines (the "hello" is lower than the 30) because the font for each <code>TextView</code> is a different size.</p>
  
  <p><a href="https://i.stack.imgur.com/tCXKW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tCXKW.png" alt="enter image description here"></a></p>