Attributes that can be set in Android text include size, color, password, shadow, hyperlink, and rules omitted when text cannot be displayed.
<? XML version = "1.0" encoding = "UTF-8"?> <Linearlayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Orientation = "vertical" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent"> <! -- Set the font to 20pt --> <textviewandroid: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: text = "I love Yanzi" Android: textsize = "20pt"/> <! -- Unspecified in the middle --> <textviewandroid: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: singleline = "true" Android: TEXT = "I love Yanzi, I am aaayanzi" Android: ellipsize = "Middle"/> <! -- Add a link to the URL --> <textviewandroid: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: singleline = "true" Android: text = "test timeline" Android: autolink = "all"/> <! -- Set the text color and size, and use the shadow --> <textviewandroid: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: text = "test text" Android: shadowcolor = "# 0000ff" Android: shadowdx = "15.0" Android: shadowdy = "20.0" Android: shadowradius = "45.0" Android: textcolor = "# ff0000" Android: textsize = "25pt"/> <! -- Test password box --> <textview Android: Id = "@ + ID/passwd" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: TEXT = "@ string/Hello" Android: Password = "true"/> </linearlayout>