Android Text Attributes Android studio - Passionate Geekz

Breaking

Where you can unleash your inner geek.

Tuesday, 17 September 2019

Android Text Attributes Android studio

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:textAlignmentTo align the text (Centre,left,right)
android:textAllCapsTo change the text from lower case
android:textColor
To Change the color of text
android:textFontWeight
To add weight in font
android:backgroundTo add background to text
android:textSize
To change size of text(sp,dp)
android:textStyle
Bold,italics,normal

No comments:

Post a Comment