• 团队十日冲刺5


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

     实现代码

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

      

  • 相关阅读:
    网络传输协议 UDP & TCP 详解
    OSI 七层协议
    (01day)python接口测试
    Python2和Python3的区别,以及为什么选Python3的原因
    JAVA反编译工具
    JAR反编译工具
    webdriver19-witchto方法
    webdriver实例14-Xpath定位的几种方法
    webdirver实例1--查找元素
    Qt插件开发
  • 原文地址:https://www.cnblogs.com/198h/p/12793848.html
Copyright © 2020-2023  润新知