java create textview in middle

Solutions on MaxInterview for java create textview in middle by the best coders in the world

showing results for - "java create textview in middle"
Eline
31 Jan 2019
1<TextView  
2    android:layout_width="match_parent" 
3    android:layout_height="match_parent" 
4    android:gravity="center"
5    android:text="@string/**yourtextstring**"
6/>
Kais
22 Sep 2019
1textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL);
2
similar questions
queries leading to this page
java create textview in middle