第一步:先创建一个Android项目页面首字母要大写
第二步:创建跳转页面(新创一个页面)
第三步:写出登录界面
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".TestActivity" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp" >
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#353d3f"
android:gravity="center"
android:text="用户注册"
android:textColor="#fdfdfd" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp" >
<TextView
android:layout_width="0dp"
android:layout_height="50dp"
android:layout_weight="1"
android:text="账号:" />
<EditText
android:id="@+id/et_username"
android:layout_width="0dp"
android:layout_height="50dp"
android:layout_weight="4"
android:background="@drawable/clor" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp" >
<TextView
android:layout_width="0dp"
android:layout_height="50dp"
android:layout_weight="1"
android:text="密码:" />
<EditText
android:id="@+id/et_pwd"
android:layout_width="0dp"
android:layout_height="50dp"
android:layout_weight="4"
android:background="@drawable/clor" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
<