title: Adjust button text size with button height
body: <p>I have a button that I set a particular height for and have the button text fill the entire button. I achieved this before by setting <code>textSize</code> to a specific dimension to fill the button. </p>
  
  <p>But the problem is whenever the user changes the system font of his/her device, it affects the button text and the text overflows and gets cut in the button. How can I make the button text size match the height of the button?</p>
  
  <p>Edit</p>
  
  <p>The button's height is set to <code>match_parent</code> for it's parent widget</p>
  
  <pre><code>        &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              app:popupTheme="@style/AppTheme.PopupOverlay"&gt;
              &lt;RelativeLayout
                  android:layout_marginEnd="16dp"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_marginRight="16dp"&gt;
                  &lt;Button
                      android:id="@+id/text_toolbar"
                      style="?android:attr/borderlessButtonStyle"
                      android:layout_centerInParent="true"
                      android:layout_width="wrap_content"
                      android:layout_height="match_parent"
                      android:textSize="36sp"
                      android:textColor="@color/white"
                      android:text="@string/k_i_n_e_c_t"/&gt;
              &lt;/RelativeLayout&gt;
          &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>