The font size of TextView in Android application not change. This is my code and here how can I change the text font size?
<TextView android:layout_width="215dp" android:layout_height="43dp" android:text="Register Here" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" tools:layout_editor_absoluteY="12dp"/>
The easiest to do so is simply to use something like the following:
android:textSize="32dp"
For example:
<TextView android:layout_width="215dp" android:layout_height="43dp" android:textSize="32dp" android:text="Register Here" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" tools:layout_editor_absoluteY="12dp"/>
Question and answer is powered by AnsPress.io