I want to display a string vertically in a view as below, is there have a way to implement that in layout XML file?
To rotate the textview in xml use : android:rotation="-90"
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
android:rotation="-90"/>
Example image
add attributes in Text view android:rotation="-90"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:rotation="-90"
android:text="Hello World!" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With