text center android studio xml code example
Example 1: textview android text align center
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/**yourtextstring**"
/>
Example 2: android kotlin center text
// Centering text in kotlin for android
// like this
android:textAlignment="center"