how do i make textview vertical?

Use Asterisk Operator [∗] ( U+2217) instead Asterisk [*] ( U+002A )

Asterisk Operator is by default vertically centered on other hand Asterisk by default align at top but cover full height of line

So even if you use gravity or vertical-align Asterisk never go in center of line

<TextView  android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:text="\u2217"
            android:gravity="center"
            android:textColor="@color/bhTextColorPrimary"
            android:textSize="16sp" />

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top