接上次的教程,这次我们在界面中加个EditText,EditText是什么?看名字就知道啦,什么?你小学英语没学好,我晕,Edit是编辑的意思,Text是文本,连一起就是可编辑文本控件.我们看一下main.xml
<?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">
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/editText">
</EditText>
<Button android:layout_width="match_parent"
android:layout_height="wrap_content" android:text="按钮" android:id="@+id/button"></Button>
<TextView android:layout_height="wrap_content"
android:layout_width="fill_parent" andr