<?xml version= "1.0" encoding= "Utf-8"? ><linearlayout xmlns:android= "Http://schemas.android.com/apk/res/android"android:orientation= "Vertical"Android:layout_width= "Match_parent"Android:layout_height= "Match_parent"android:padding= "10DP" > <LinearLayout android:layout_width= "Match_parent"Android:layout_height= "Wrap_content" > <EditText android:layout_width= "Match_parent"Android:layout_height= "Wrap_content"Android:hint= "username"/> </LinearLayout> <LinearLayout android:layout_width= "Match_parent"Android:layout_height= "Wrap_content" > <EditText android:layout_width= "Match_parent"Android:layout_height= "Wrap_content"Android:hint= "Password"Android:inputtype= "Textpassword"Android:maxlength= "/>" </LinearLayout> <LinearLayout android:layout_width= "Match_parent"Android:layout_height= "Wrap_content"Android:layout_weight= "1" > <EditText android:layout_width= "Match_parent"Android:layout_height= "Match_parent"Android:hint= "Content"android:gravity= "Top"Android:inputtype= "Textpassword"/> </LinearLayout> <LinearLayout android:layout_width= "Match_parent"Android:layout_height= "Wrap_content"android:layout_gravity= "Bottom" > <Button android:layout_width= "0DP"Android:layout_height= "Wrap_content"Android:text= "Login"Android:id= "@+id/button3"Android:layout_weight= "1"/> <Button android:layout_width= "0DP"Android:layout_height= "Wrap_content"Android:text= "Register"Android:id= "@+id/button2"Android:layout_weight= "1"/></linearlayout></linearlayout>
View Code
Classroom Summary and Practice