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

Hits: 46

CATEGORIES
Share This

COMMENTS

Wordpress (0)
Disqus ( )
%d bloggers like this: