android ui登入介面
阿新 • • 發佈:2019-01-09
登入介面
<?xml version="1.0" encoding="utf-8"?> <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" toolszhu'c:context="com.example.administrator.myapplication.MainActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="60dp" android:orientation="horizontal"> <TextView android:textColor="#ffffff" android:text="登入" android:textSize="20dp" android:gravity="center" android:background="#0099ff" android:layout_width="match_parent" android:layout_height="44dp" /> </LinearLayout> <LinearLayout android:layout_width="match_parent"android:layout_height="match_parent" android:orientation="vertical" android:paddingLeft="16dp" android:paddingRight="16dp" android:paddingTop="16dp"> <EditText android:id="@+id/zhangHaoText" android:layout_width="match_parent" android:layout_height="50dp" android:hint="帳號" android:numeric="integer" android:textColorHint="#0066ff" android:maxLength="11" android:background="@drawable/edit_shape"/> <EditText android:id="@+id/miMaText" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp" android:hint="密碼" android:maxLength="16" android:textColorHint="#0066ff" android:background="@drawable/edit_shape"/> <LinearLayout android:layout_width="match_parent" android:layout_height="50dp" android:layout_marginTop="10dp"> <Button android:id="@+id/zhuCeButton" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1" android:background="#0000" android:text="註冊" android:textColor="#0066ff" android:gravity="left|center"/> <Button android:id="@+id/wangJiMiMaButton" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1" android:background="#0000" android:text="忘記密碼" android:textColor="#0066ff" android:gravity="right|center"/> </LinearLayout> <Button android:id="@+id/dengLuButton" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="44dp" android:text="登入" android:background="@drawable/shape" android:textColor="#ffffff" android:textSize="15dp"/> </LinearLayout> </LinearLayout>