1.登录界面 通过学习比较 登录界面采用线性布局(LinearLayout)

下面是相关源码

activity_main.xml

?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=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="账号:"
android:paddingBottom="1dp" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" /> <EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dp"
android:hint="请输入手机号/用户名" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="密码:"
android:paddingBottom="1dp" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" /> <EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="10dp"
android:hint="请输入密码" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="登 录"
android:textColor="#FFFFFF"
android:background="#FF009688"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="注册"
android:layout_gravity="left"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="忘记密码?"
android:layout_gravity="right"/>

  这个界面是主页面下面的登录子页面。

最新文章

  1. 【转】Oracle Database PSU/CPU
  2. 使用ASP.NET Web Api构建基于REST风格的服务实战系列教程【外传】——Attribute Routing
  3. postgresql如何实现回收站机制
  4. python2 到 python3 转换工具 2to3
  5. 使用Netty进行Android与Server端通信实现文字发送接收与图片上传
  6. 矩阵, 矩阵 , Android基础控件之ImageView
  7. Webform Repeater的灵活运用
  8. diameter - degree problem
  9. dataGridView行高自适应
  10. JS中5秒中跳转到其他页面
  11. mysql中变量character_set_connection的具体作用
  12. 关于linux下部署JavaWeb项目,nginx负责静态资源访问,tomcat负责处理动态请求的nginx配置
  13. (五) Keras Adam优化器以及CNN应用于手写识别
  14. pip的安装问题
  15. Web 前端编程运维必备
  16. 数组之slice,splice,Concact,Reverse,Sort方法
  17. 【sql注入教程】SQL注入是什么?我们如何去玩转它
  18. C++树的插入和遍历(关于指针的指针,指针的引用的思考)
  19. uptime 负载 top
  20. Node.js进程管理之Process模块

热门文章

  1. CRLF injection 简单总结
  2. 基于html5拖拽api实现列表的拖拽排序
  3. Nslookup命令的使用 - [详细]
  4. js dom演示
  5. .Net Core微服务入门全纪录(完结)——Ocelot与Swagger
  6. 题解 CF1359B 【New Theatre Square】
  7. vuex : 模块化改造
  8. OpenLDAP 2.4.44 安装部署避坑指南
  9. git安装并与远程仓库关联相关配置
  10. Netty 学习笔记(1) ------ Hello World