<LinearLayoutxmlns:android= "Http://schemas.android.com/apk/res/android"Android:layout_width= "Fill_parent"Android:layout_height= "Fill_parent"android:orientation= "vertical"android:padding= "20DP" > <!--android:stretchcolumns= "1" Sets the second column auto-extrude - <TablelayoutAndroid:layout_width= "Match_parent"Android:layout_height= "Match_parent"Android:stretchcolumns= "1" > <TableRowAndroid:id= "@+id/tablerow1"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content" > <TextViewAndroid:id= "@+id/textview1"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "User name"android:textappearance= "? Android:attr/textappearancelarge" /> <!--Set as text, the keyboard appears as the next - <EditTextAndroid:id= "@+id/edittext1"Android:layout_width= "Match_parent"Android:layout_height= "Wrap_content"Android:hint= "Please fill in User name"Android:inputtype= "text"android:imeoptions= "Actionnext" > </EditText> </TableRow> <TableRowAndroid:id= "@+id/tablerow2"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content" > <TextViewAndroid:id= "@+id/textview2"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "Password"android:textappearance= "? Android:attr/textappearancelarge" /> <EditTextAndroid:id= "@+id/edittext2"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:inputtype= "Textpassword"android:imeoptions= "Actionnext"> </EditText> </TableRow> <TableRowAndroid:id= "@+id/tablerow3"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content" > <TextViewAndroid:id= "@+id/textview3"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "Age"android:textappearance= "? Android:attr/textappearancelarge" /> <EditTextAndroid:id= "@+id/edittext3"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:inputtype= "Number"android:imeoptions= "Actionnext"/> </TableRow> <TableRowAndroid:id= "@+id/tablerow4"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content" > <TextViewAndroid:id= "@+id/textview4"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "Birthday"android:textappearance= "? Android:attr/textappearancelarge" /> <EditTextAndroid:id= "@+id/edittext4"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:inputtype= "Date"android:imeoptions= "Actionnext"/> </TableRow> <TableRowAndroid:id= "@+id/tablerow5"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content" > <TextViewAndroid:id= "@+id/textview5"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "Phone number"android:textappearance= "? Android:attr/textappearancelarge" /> <EditTextAndroid:id= "@+id/edittext5"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:inputtype= "Phone"android:imeoptions= "Actiondone" /> </TableRow> <ButtonAndroid:id= "@+id/button1"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"Android:text= "Register" /> </Tablelayout></LinearLayout>
Android Learning-Interface-ui-textedit