Question : textview android text align center
Answered by : hamid-reza-zare-pour
<TextView android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:text="@string/**yourtextstring**"
/>
Source : | Last Update : Sun, 24 May 20
Question : android textview center align text programmatically
Answered by : fede
yourTextView.setGravity(Gravity.CENTER);
Source : https://stackoverflow.com/questions/12775743/programmatically-center-textview-text/12775909 | Last Update : Sat, 21 Mar 20