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 -->
<TextView
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: text = "I love yanzi"
Android: textSize = "20pt"
/>
<! -- Set the center to omitted -->
<TextView
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: singleLine = "true"
Android: text = "I love yanzi, I love yanzi, I aaayanzi"
Android: ellipsize = "middle"
/>
<! -- Add a link to the website -->
<TextView
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: singleLine = "true"
Android: text = "test www.2cto.com content"
Android: autoLink = "all"
/>
<! -- Set the text color, size, and shadow -->
<TextView
Android: 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>
From the column hn307165411