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

    1.今天设计“我的”界面和注册

    <?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=".me_me"
    android:id="@+id/message11"
    >
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="350dp"
    android:orientation="horizontal"
    android:background="@drawable/me_pic"

    >

    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:gravity="center">
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="60dp"
    >
    </LinearLayout>
    <ImageView
    android:id="@+id/MYmytouxiang"
    android:layout_width="80dp"
    android:layout_height="80dp"
    android:src="@mipmap/me_touxiang_1"

    ></ImageView>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="10dp">
    </LinearLayout>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:gravity="center">
    <TextView
    android:id="@+id/MYmynicheng"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="个人信息"
    android:textSize="25dip"
    android:textColor="@color/black"

    >
    </TextView>

    </LinearLayout>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="10dp">
    </LinearLayout>

    </LinearLayout>
    </LinearLayout>



    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="100dp">
    </LinearLayout>
    <LinearLayout
    android:orientation="horizontal"
    android:layout_gravity="center_horizontal"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <Button
    android:id="@+id/login_button1"
    android:layout_width="100dp"
    android:layout_height="40dp"
    android:layout_gravity="center"
    android:text="登 陆"
    android:background="@drawable/textview_round_border"
    />
    <Button
    android:id="@+id/main_register_button1"
    android:layout_width="100dp"
    android:layout_height="40dp"
    android:layout_marginLeft="20dp"
    android:layout_gravity="center"
    android:text="注 册"
    android:background="@drawable/textview_round_border"
    />
    </LinearLayout>




    <!-- TODO: Update blank fragment layout -->


    </LinearLayout>


     <?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:orientation="vertical"
    android:id="@+id/activity_register"
    android:background="@drawable/main_background"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingRight="30dp"
    android:paddingTop="170dp"
    tools:context=".RegisterActivity">


    <LinearLayout
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <TextView
    android:layout_width="0dp"
    android:layout_height="30dp"
    android:layout_weight="1"
    android:gravity="center_vertical"
    android:text=" 用 户 号:"
    android:textSize="15dp"/>
    <EditText
    android:id="@+id/register_name"
    android:layout_width="0dp"
    android:layout_height="30dp"
    android:layout_weight="2"
    android:hint="请输入用户名"
    android:textSize="14dp"
    android:gravity="center_vertical"
    android:paddingLeft="10dp"
    android:background="@drawable/textview_round_border"
    android:layout_marginRight="10dp"
    />
    </LinearLayout>

    <LinearLayout
    android:orientation="horizontal"
    android:paddingTop="10dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    >

    <TextView
    android:layout_width="0dp"
    android:layout_height="30dp"
    android:layout_weight="1"
    android:gravity="center_vertical"
    android:text=" 邮 箱:"
    android:textSize="15dp"/>

    <EditText
    android:id="@+id/register_mail"
    android:layout_width="0dp"
    android:layout_height="30dp"
    android:layout_weight="2"
    android:hint="请输入e-mail地址"
    android:textSize="14dp"
    android:gravity="center_vertical"
    android:paddingLeft="10dp"
    android:background="@drawable/textview_round_border"
    android:layout_marginRight="10dp"
    />
    </LinearLayout>

    <LinearLayout
    android:orientation="horizontal"
    android:paddingTop="10dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    >
    <TextView
    android:layout_width="0dp"
    android:layout_height="30dp"
    android:layout_weight="1"
    android:gravity="center_vertical"
    android:text=" 密 码:"
    android:textSize="15dp"/>

    <EditText
    android:id="@+id/register_password"
    android:layout_width="0dp"
    android:layout_height="30dp"
    android:layout_weight="2"
    android:hint="请输入密码"
    android:textSize="14dp"
    android:gravity="center_vertical"
    android:paddingLeft="10dp"
    android:background="@drawable/textview_round_border"
    android:layout_marginRight="10dp"
    />
    </LinearLayout>
    <LinearLayout
    android:orientation="horizontal"
    android:paddingTop="10dp"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    >
    <TextView
    android:layout_width="0dp"
    android:layout_height="30dp"
    android:layout_weight="1"
    android:gravity="center_vertical"
    android:text=" 确认密码:"
    android:textSize="15dp"/>

    <EditText
    android:id="@+id/register_password_agin"
    android:layout_width="0dp"
    android:layout_height="30dp"
    android:layout_weight="2"
    android:hint="请输入密码"
    android:textSize="14dp"
    android:gravity="center_vertical"
    android:paddingLeft="10dp"
    android:background="@drawable/textview_round_border"
    android:layout_marginRight="10dp"
    />
    </LinearLayout>
    <Button
    android:id="@+id/btn_register_button"
    android:layout_width="100dp"
    android:layout_height="40dp"
    android:layout_marginTop="10dp"
    android:layout_marginLeft="20dp"
    android:layout_gravity="center"
    android:text="注 册"
    android:background="@drawable/textview_round_border"
    />

    </LinearLayout>

     

  • 相关阅读:
    mislider jQuery响应式圆形图片轮播图特效制作(图片轮播效果二)
    CSS3 animation实现图片轮播效果 自动显示 无需使用js 含代码(图片轮播效果一)
    HTML5 Canvas 学习笔记(canvas绘制线条、矩形、多边形、圆、自定义图像)
    网页右侧悬浮窗制作
    用JavaScript实现选项卡功能
    XML 可扩展的标记性语言
    继承
    原型和原型链
    HTTP 协议类
    DOM 事件
  • 原文地址:https://www.cnblogs.com/chenghaixiang/p/14913804.html
Copyright © 2011-2022 走看看