登录界面
<?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"
tools: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>
zhu'c
微信关注 “安卓集中营”,获取更多
或者扫码关注
一起共同学习探讨