How do I horizontally center this in Android (RelativeLayout)? <p>I have the following code:</p> <pre><code>&lt;TextView android:id="@+id/exercise_name_label" android:layout_width="match_parent" android:layout_height="32dp" android:text="Curls" android:gravity="bottom" android:layout_centerHorizontal="true" /&gt; </code></pre> <p>And I want the text to be aligned at the bottom of the 32dp and center horizontally..currently it's not centering horizontally:</p> <p><img src="https://i.stack.imgur.com/FyyMn.png" alt="enter image description here"> </p>