font

Android Textview Font

In Android, we can set the font to textview by using the textview property.

  • 'android:textSize' for Textview Size
  • 'android:textStyle' for Textview Text Style
  • 'android:typeface' for Textview Font Style

Textview Font Example -

[sourcecode language="xml"]

<TextView android:text="@+id/TextView01"
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20px"
android:textStyle="bold"
android:typeface="s

Android Text Color

In Android, we can set text color for textview, edittext, buttons, etc...

Example:-

Input

Output

Syndicate content