文档介绍:----------------------------------- Android 编程基础 1 封面----------------------------------- Android 编程基础 2 Android Android Android Android 基础 UI UI UI UI 编程 1 1 1 1 更改与显示文字标签 TextView 标签的使用①导入 TextView 包②在 中声明一个 TextView ③在 中定义一个 TextView ④利用 findViewById() 方法获取 中的 TextView ⑤设置 TextView 标签内容⑥设置文本超级链接 import import import import ; private private private private TextView mTextView01 ; < TextView android:text = "TextView01" android:id = "@+id/TextView01" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:layout_x = "61px" android:layout_y = "69px" > </ TextView > mTextView01 = (TextView) findViewById(. TextView01 ); String str_2 = " 欢迎来到 Android 的 TextView 世界..." ; mTextView01 .setText(str_2); < TextView android:id = "@+id/TextView02" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:autoLink = "all" android:text = " 请访问 Android 开发者: http://developer./" > </ TextView > ----------------------------------- Android 编程基础 3 实践----Color ----Color ----Color ----Color 颜色变幻 包含颜色值编程实现颜色变幻①新建工程②修改 文件,添加 12 个 TextView 对象变量,一个 LinearLayout 对象变量、一个 W C 整数变量、一个 变量。 黑色蓝色青绿色灰黑色灰色绿色浅灰色红紫色红色透明白色黄色 package package package package ; /* 导入要使用的包*/ import import import import ; import import import import ; import import import import ; import import import import ; import import import import ; public public public public class class class class ManyColorME extends extends extends extends Activity { /** Called when the activity i