Answers for "middle textview android"

CSS
9

textview android text align center

<TextView  
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:gravity="center"
    android:text="@string/**yourtextstring**"
/>
Posted by: Guest on May-17-2020
0

java create textview in middle

textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL);
Posted by: Guest on November-08-2020

Browse Popular Code Answers by Language