zoukankan      html  css  js  c++  java
  • 第一阶段团队冲刺第三天

      设计了注册界面,对注册界面进行一些美化,增加用户体验。

    对用用户界面的设计样式如下:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"

    android:orientation="vertical"
    tools:context=".zhuce">
    <androidx.appcompat.widget.Toolbar
    android:id="@+id/zctoolbar"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    app:navigationIcon="@mipmap/back1"
    app:titleMarginStart="110dp"
    app:title="信息注册"
    >

    </androidx.appcompat.widget.Toolbar>

    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="100dp"
    >
    <LinearLayout
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="1"></LinearLayout>
    <ImageView
    android:id="@+id/ZC1"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_gravity="center"
    android:src="@drawable/zctx"
    android:layout_margin="20dp"
    />
    <LinearLayout
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_gravity="center_horizontal"
    android:layout_weight="1">
    </LinearLayout>

    </LinearLayout>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <TextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:text="点击更换头像"
    android:textColor="@color/black"
    ></TextView>
    </LinearLayout>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="10dp">
    </LinearLayout>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    >
    <EditText
    android:id="@+id/ZCNi"
    android:layout_margin="5dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/dlzcdeyj"
    android:gravity="center"
    android:textColorHint="@color/black"
    android:hint="输入你的昵称"
    android:padding="15dp"
    android:textSize="16sp"
    android:textColor="@color/black"
    />
    <EditText
    android:layout_margin="5dp"
    android:id="@+id/ZCID"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/dlzcdeyj"
    android:gravity="center"
    android:textColorHint="@color/black"
    android:hint="注册账号/6位数"
    android:textColor="@color/black"
    android:inputType="number"
    android:padding="15dp"
    android:maxLength="6"
    android:textSize="16sp"
    />
    <EditText
    android:layout_margin="5dp"
    android:id="@+id/ZCP1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/dlzcdeyj"
    android:gravity="center"
    android:textColorHint="@color/black"
    android:hint="输入密码"
    android:maxLength="16"
    android:textColor="@color/black"
    android:inputType="textPassword"
    android:padding="15dp"
    android:textSize="16sp"
    />
    <EditText
    android:layout_margin="5dp"
    android:id="@+id/ZCp2"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/dlzcdeyj"
    android:gravity="center"
    android:textColorHint="@color/black"
    android:hint="确认密码"
    android:maxLength="16"
    android:textColor="@color/black"
    android:inputType="textPassword"
    android:padding="15dp"
    android:textSize="16sp"
    />
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <LinearLayout
    android:layout_weight="2"
    android:gravity="center"
    android:layout_gravity="center"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <LinearLayout
    android:layout_weight="1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    </LinearLayout>
    <TextView
    android:text="性别:"
    android:layout_weight="1"
    android:textSize="15dip"
    android:textColor="@color/black"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    </TextView>
    <LinearLayout
    android:layout_weight="1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    </LinearLayout>
    </LinearLayout>
    <LinearLayout
    android:layout_weight="1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <RadioGroup
    android:id="@+id/zhucesexcheck"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_vertical"
    android:gravity="center"
    android:orientation="horizontal">
    <RadioButton
    android:layout_weight="1"
    android:id="@+id/zcsexman"
    android:text="男生"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    </RadioButton>
    <RadioButton
    android:layout_weight="1"
    android:id="@+id/zcsexwoman"
    android:text="女生"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    </RadioButton>
    </RadioGroup>
    </LinearLayout>
    </LinearLayout>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <LinearLayout
    android:layout_weight="2"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:orientation="horizontal">

    <TextView
    android:layout_weight="1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:text="个性签名:"
    android:textColor="@color/black">
    </TextView>

    </LinearLayout>
    <LinearLayout
    android:layout_weight="1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <EditText
    android:id="@+id/ZCQM"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="left"
    android:background="@color/white"
    android:textColorHint="@color/black"
    android:textColor="@color/black"
    android:hint="输入个性介绍"
    android:padding="15dp"
    android:textSize="16sp"
    />
    </LinearLayout>
    </LinearLayout>
    <Button
    android:layout_margin="5dp"
    android:id="@+id/mainzcbt"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/zcdebtn"
    android:onClick="zhuce"
    android:text="注册" />
    </LinearLayout>


    </LinearLayout>

  • 相关阅读:
    RecyclerView中装饰者模式应用
    Android中的Drawable和动画
    Android的线程和线程池
    Bitmap的加载和Cache
    Android的消息机制
    【Java基础】线程和并发机制
    Asp.Net 将HTML中通过dom-to-image.js标签div内的内容转化为图片保存到本地
    Asp.Net MVC @Html.TextBox 只允许输入数字问题
    程序员编程10大原则,请牢牢记住
    Asp.Net MVC WebAPI的创建与前台Jquery ajax后台HttpClient调用详解
  • 原文地址:https://www.cnblogs.com/ruangongwangxiansheng/p/14912578.html
Copyright © 2011-2022 走看看