android ui登陆界面

  登陆界面html

 

<?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'candroid

微信关注 “安卓集中营”,获取更多微信

或者扫码关注app

一块儿共同窗习探讨学习