当你创建一个新的Android项目,Eclipse通常总是会创建main.xml文件,当中包含一个<TextView>元素。
- <?xmlversion="1.0"encoding="utf-8"?>
- <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical">
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="@string/hello"/>
- </LinearLayout>
本文介绍在创建Android项目时Eclipse自动生成的main.xml布局文件中TextView的基本用法及如何通过其子类EditText实现文本编辑功能。

被折叠的 条评论
为什么被折叠?



