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

      今天进行界面的设计,主要也是对登录界面的设计,对编辑框进行美化,对按钮进行样式的优化。

    实现这些需要在控件的background属性中加入代表样式的xml,在drawable中新建xml,然后对控件的样式进行美化和修改。

    对于整体的布局,我使用的Linearlayout,在我的感觉里这样编写出来的界面还是比较层次清晰的。

    布局代码如下:

    <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"
    android:background="@drawable/bag_2"
    tools:context=".">
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="280dp">
    </LinearLayout>
    <LinearLayout
    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>
    <LinearLayout
    android:layout_weight="2"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <TextView
    android:id="@+id/zced"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="还没有?点我注册"
    />
    </LinearLayout>
    </LinearLayout>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="10dp">
    </LinearLayout>
    <EditText
    android:id="@+id/DLID"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/rounded_editview"
    android:gravity="center"
    android:hint="输入账号"
    android:inputType="number"
    android:maxLength="6"
    android:padding="8dp"
    android:textColorHint="@color/white"
    android:textSize="16sp"
    />

    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="20dp"></LinearLayout>
    <EditText
    android:id="@+id/DLPA"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/rounded_editview"
    android:gravity="center"
    android:hint="输入密码"
    android:inputType="textPassword"
    android:maxLength="16"
    android:padding="8dp"
    android:textColorHint="@color/white"
    android:textSize="16sp"
    />
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="20dp">
    </LinearLayout>
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content">


    <Button
    android:id="@+id/dlbt"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@animator/btn_nor_down"
    android:text="登录"
    />
    </LinearLayout>

    </LinearLayout>
  • 相关阅读:
    web socket RFC6455 frame 打包、解包
    Cacti 加入多台主机带宽汇聚
    C-链表实现,保存文件,评估-单项选择题系统课程设计---ShinePans
    ios7.1安装提示"无法安装应用程序 由于证书无效"的解决方式二(dropbox被封项目转移到Appharbor上)
    【模板】第二类斯特林数·列
    2018-8-10-win10-uwp-slider-隐藏显示数值
    2018-8-10-win10-uwp-slider-隐藏显示数值
    2019-1-27-WPF-使用-ItemsPanel-修改方向
    2019-1-27-WPF-使用-ItemsPanel-修改方向
    2018-8-10-win10-uwp-x_Bind-无法获得资源
  • 原文地址:https://www.cnblogs.com/ruangongwangxiansheng/p/14911658.html
Copyright © 2011-2022 走看看