Android TextView

Android TextView Widget

Android TextView widget displays text.

Sample Code

<TextView
    android:id="@+id/text_view_greeting"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:textAlignment="center"
    android:textSize="25dp"
    android:text="Hello World!" />

Screenshot

TextView widget with text “Hello World!”

Android TextView Tutorials

To change the text size of TextView widget, refer

Android TextView – Text Size

To change the shadow of text in TextView widget, refer

Android TextView – Text Shadow

To change the text color of TextView widget, refer

Android TextView – Text Color

To change the maximum length allowed for text in TextView widget, refer

Android TextView – Maximum Length

To change the text style to bold in TextView widget, refer

Android TextView – Bold Text

To change the text style to italic in TextView widget, refer

Android TextView – Italic Text

To change the style of text in TextView widget, refer

Android TextView – Text Style

To center align text in TextView widget, refer

Android TextView – Center Align Text

To change the border of TextView widget, refer

Android TextView – Border

To change the background color of TextView widget, refer

Android TextView – Background Color

To convert URLs to links in TextView widget, refer

Android TextView – URLs to Links