In this tutorial we are going to discuss about some various text attributes in android studio.
To add text in android app use <textview from template or create one
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!"
| android:textAlignment | To align the text (Centre,left,right) |
| android:textAllCaps | To change the text from lower case |
| android:textColor | To Change the color of text |
| android:textFontWeight | To add weight in font |
| android:background | To add background to text |
| android:textSize | To change size of text(sp,dp) |
| android:textStyle | Bold,italics,normal |
No comments:
Post a Comment