zoukankan      html  css  js  c++  java
  • 20210114 android学习

    今天学习QQ的布局

    首先完成主布局

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout
    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:background="@color/colorAccent">

    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:padding="70dp"
    >
    <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="QQ"
    android:drawableLeft="@mipmap/ic_launcher"
    android:textSize="50dp"
    >
    </TextView>
    <EditText
    android:id="@+id/et_account"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:hint="QQ号码/手机号/邮箱"
    android:layout_marginTop="30dp"
    >
    </EditText>
    <EditText
    android:id="@+id/et_password"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:hint="密码"
    android:inputType="textPassword"
    >
    </EditText>
    <Button
    android:id="@+id/bt_login"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="登录"
    android:textSize="20sp">

    </Button>
    <RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp">
    <TextView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:textColor="#222222"
    android:text="忘记密码?"
    android:textSize="13sp"
    >
    </TextView>
    <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="13sp"
    android:textColor="#222222"
    android:text="新用户注册"
    android:layout_alignParentRight="true"
    >
    </TextView>
    </RelativeLayout>

    </LinearLayout>
    <TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_centerHorizontal="true"
    android:layout_marginBottom="50dp"
    android:text="登录即代表阅读并同意阅读条款"
    android:textColor="#222222"
    android:textSize="20sp">
    </TextView>
    </RelativeLayout>



  • 相关阅读:
    Window上编译最新版libCef(Branch 2704)(转载)
    在hue 使用oozie sqoop 从mysql 导入hive 失败
    hive 支持更新
    基于Hadoop生态圈的数据仓库实践 —— 环境搭建(三)笔记
    修改CENTOS7的网卡名(将网卡ens33修改为我们在centos6中常见的eth0)
    config network name
    Java服务部署规范(内部使用)
    MongoDB干货系列1-定期巡检之Mtools
    mongodb validation--像关系型数据库表去使用mongodb
    ntp 服务导致kudu集群不可用
  • 原文地址:https://www.cnblogs.com/huangmouren233/p/14912631.html
Copyright © 2011-2022 走看看