zoukankan      html  css  js  c++  java
  • 团队十日冲刺5

    今天实现了登录和注册功能,主界面我们选择了一个环绕式的饼图

     实现代码

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@mipmap/bg"
        android:gravity="center_horizontal"
        android:orientation="vertical" >
     
        <TextView
            style="@style/textstyle"
            android:gravity="center"
            android:text="@string/login"
            android:textColor="#ffff"
            android:textSize="24sp"/>
        <!-- input account -->
        <EditText
            android:id="@+id/editPhone"
            style="@style/textstyle"
            android:layout_width="fill_parent"
            android:background="@drawable/rounded_edittext_states"
            android:hint="手机号"
            android:lines="1"
            android:singleLine="true"
            android:inputType="number"
            android:maxLength="11"/>
        <!-- input pwd -->
        <EditText
            android:id="@+id/editPwd"
            style="@style/textstyle"
            android:layout_width="fill_parent"
            android:background="@drawable/rounded_edittext_states"
            android:hint="密码"
            android:lines="1"
            android:password="true"
            android:singleLine="true"
            android:maxLength="16"/>
        <!-- the login button -->
        <Button
            android:id="@+id/btnLogin"
            style="@style/textstyle"
            android:layout_width="fill_parent"
            android:background="@drawable/cycleanytext_shape"
            android:onClick="OnMyLoginClick"
            android:text="@string/login"/>
     
     
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="5dp"
            android:orientation="horizontal">
     
            <!-- forget password button -->
            <TextView
                android:id="@+id/txtForgetPwd"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:gravity="center"
                android:text="@string/forgetPwd"
                android:textColor="#ffff"
                android:clickable="true"
                android:onClick="OnMyResPwdClick"
                android:textSize="15sp"/>
            <!-- start register button -->
            <TextView
                android:id="@+id/txtStartRegist"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:gravity="center"
                android:text="@string/startRegist"
                android:textColor="#ffff"
                android:clickable="true"
                android:onClick="OnMyRegistClick"
                android:textSize="15sp"/>
        </RelativeLayout>
    </LinearLayout>
  • 相关阅读:
    hospital 基于反射的 在线医疗项目(三)
    hospital 基于反射的 在线医疗项目(二)
    【前端笔记】之 消息提示框
    hospital 基于反射的 在线医疗项目(-)
    【前端笔记】之一个简单好看的的下拉菜单 :select下拉框
    Dubbo和Zookeeper在Linux系统的安装
    记录一下Java String类的常用方法
    myeclipse与tomcat、jdk的安装和配置
    jQuery选择器总结
    js根据2个日期计算相差天数
  • 原文地址:https://www.cnblogs.com/xiatian21/p/13072016.html
Copyright © 2011-2022 走看看