redon13
3/31/2018 - 5:26 AM

Center text horizontally and vertically in a TextView

<TextView  
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:gravity="center"
    android:text="@string/**yourtextstring**"
/>