zoukankan      html  css  js  c++  java
  • 学习进度八

    分别练习使用了线线行布局(linearLayout),和相对布局(RelativeLayout).

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:padding="15dp">

    <TextView
    android:id="@+id/tv_1"
    android:layout_width="match_parent"
    android:layout_height="100dp"
    android:text="杨青的记账本"
    android:textColor="#2BB3D5"
    android:gravity="center"
    android:textStyle="italic"
    android:textSize="50dp"/>


    <EditText
    android:id="@+id/et_1"
    android:layout_width="match_parent"
    android:layout_height="60dp"
    android:layout_below="@+id/tv_1"
    android:hint="用户名"
    android:textColor="#111100"
    android:textSize="20sp"
    android:inputType="number"
    />
    <EditText
    android:id="@+id/et_2"
    android:layout_width="match_parent"
    android:layout_height="60dp"
    android:layout_below="@+id/et_1"
    android:hint="密码"
    android:layout_marginTop="15dp"
    android:inputType="textPassword"
    android:textColor="#111100"
    android:textSize="20sp"
    />
    <Button
    android:id="@+id/btn_1"
    android:layout_width="match_parent"
    android:layout_height="60dp"
    android:layout_below="@+id/et_2"
    android:layout_marginTop="15dp"
    android:text="登录"
    android:textSize="20sp"
    android:background="@drawable/pressxiaoguo"
    android:textColor="#FFFFFF"/>

    <CheckBox
    android:id="@+id/ck_1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="记住密码"
    android:layout_below="@id/btn_1"
    android:layout_marginTop="10dp"
    android:textSize="15sp"/>

    <TextView
    android:id="@+id/tv_2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="忘记密码"
    android:layout_below="@id/btn_1"
    android:layout_toRightOf="@id/ck_1"
    android:layout_marginTop="15dp"
    android:layout_marginLeft="200dp"
    android:textSize="15sp"
    />
    练习使用了各种组件。


  • 相关阅读:
    Odoo many2many command
    odoo-cn 邮件列表
    教育 管理系统
    ddmrp
    odoo12新特性: 会计改进
    odoo分析会计
    Odoo 8,9,10 制造领料、入库 实践
    Odoo 后端数据库postgreSQL事务级别
    Hive建表与导入文件中的数据
    Hadoop编写一键集群全起start-cluster.sh、全关stop-cluster.sh、显示所有jps进程show-jps.sh脚本 以及群起zookeeper服务,jps不显示的解决方案
  • 原文地址:https://www.cnblogs.com/yangqqq/p/12293094.html
Copyright © 2011-2022 走看看