android 登录效果
<?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"> <ImageView
android:id="@+id/activity_login_image"
android:layout_width="match_parent"
android:layout_height="270dp"
android:layout_alignParentTop="true"
android:scaleType="centerCrop"
android:src="@drawable/login_bg"/> <LinearLayout
android:id="@+id/deleli"
android:layout_width="50dp"
android:gravity="center"
android:layout_height="40dp">
<ImageView
android:layout_width="19dp"
android:layout_height="19dp"
android:src="@drawable/login_delete"/>
</LinearLayout>
<!--<include layout="@layout/window_head"/>-->
<!--<TextView-->
<!--android:id="@+id/activity_login_qr_code"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="二维码扫描"-->
<!--android:padding="10dp"-->
<!--android:background="@drawable/selector_orange_grey"/>-->
<RelativeLayout
android:id="@+id/activity_login_head_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:visibility="gone"
android:layout_marginTop="20dp"> <TextView
android:id="@+id/activity_login_common_register2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:layout_toLeftOf="@+id/activity_login_member_register"
android:background="@drawable/selector_green_green"
android:gravity="center"
android:padding="8dp"
android:text="普通注册"
android:textColor="@color/login_whiter"/> <TextView
android:id="@+id/activity_login_member_register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="13dp"
android:background="@drawable/selector_green_green"
android:gravity="center"
android:padding="8dp"
android:text="会员注册"
android:textColor="@color/login_whiter"/> </RelativeLayout> <LinearLayout
android:id="@+id/activity_login_layout"
android:layout_width="match_parent"
android:layout_height="92dp"
android:layout_alignParentTop="true"
android:layout_marginLeft="13dp"
android:layout_marginRight="13dp"
android:layout_marginTop="240dp"
android:background="@drawable/border_grey"
android:orientation="vertical"> <LinearLayout
android:layout_width="match_parent"
android:layout_height="46dp"
android:gravity="center_vertical"
android:orientation="horizontal"> <RelativeLayout
android:layout_width="11dp"
android:layout_height="match_parent"> <ImageView
android:layout_width="11dp"
android:layout_height="11dp"
android:src="@drawable/login_tips"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"/>
</RelativeLayout> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/account_icon"
/> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="13dp"
android:layout_marginRight="14dp"
android:text="|"/> <EditText
android:id="@+id/login_tel"
android:layout_width="230dp"
android:layout_height="46dp"
android:background="@null"
android:digits="0123456789"
android:gravity="center_vertical"
android:hint="请输入电话"
android:inputType="number"
android:maxLength="11"
android:textColor="@color/login_black"
android:textSize="16sp"
/>
</LinearLayout> <TextView
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/grey"/> <LinearLayout
android:layout_width="match_parent"
android:layout_height="46dp"
android:gravity="center_vertical"
android:paddingLeft="11dp"
android:paddingRight="11dp"> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/password_icon"
/> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="13dp"
android:layout_marginRight="14dp"
android:text="|"/> <EditText
android:id="@+id/login_password"
android:layout_width="match_parent"
android:layout_height="46dp"
android:background="@null"
android:digits="0123456789abcdefghijgklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
android:gravity="center_vertical"
android:hint="请输入密码"
android:inputType="textVisiblePassword"
android:textColor="@color/login_black"
android:textSize="16sp"
/>
</LinearLayout> </LinearLayout> <Button
android:id="@+id/login_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/selector_green_green"
android:text="登录"
android:textColor="@color/login_whiter"
android:textSize="16sp"
android:layout_below="@+id/activity_login_layout"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:layout_marginTop="16dp"/> <LinearLayout
android:layout_width="match_parent"
android:layout_height="25dp"
android:orientation="horizontal"
android:layout_marginTop="410dp"
android:weightSum="2"
android:gravity="center_vertical"
android:id="@+id/linearLayout2"> <LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="left|center"> <TextView
android:id="@+id/activity_login_common_register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="18dp"
android:text="快速注册"
android:textColor="@color/businesstop"
android:textSize="13sp"/>
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="right|center">
<TextView
android:id="@+id/activity_login_forget_password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/login_button"
android:text="忘记密码"
android:textColor="@color/login_grey"
android:layout_marginRight="12dp"
android:textSize="13sp"/> </LinearLayout> </LinearLayout> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="15dp"
android:orientation="vertical"> <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:visibility="visible"
android:orientation="horizontal"> <TextView
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_marginLeft="51dp"
android:layout_weight="1"
android:background="@color/login_grey_bottomtwo"/> <TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:text="第三方登录"
android:textColor="@color/login_grey_bottom"
android:textSize="12sp"/> <TextView
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_marginRight="51dp"
android:layout_weight="1"
android:background="@color/login_grey_bottomtwo"/>
</LinearLayout> <RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="15dp"
android:visibility="visible"
android:gravity="center_horizontal"
android:orientation="horizontal"> <LinearLayout
android:id="@+id/activity_login_wei_xin_text_layout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:gravity="center"> <ImageView
android:id="@+id/activity_login_wei_xin_text"
android:layout_width="30dp"
android:layout_height="30dp"
android:scaleType="centerCrop"
android:src="@drawable/ssdk_oks_classic_wechat"/>
</LinearLayout> <LinearLayout
android:id="@+id/activity_login_qq_text_layout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:visibility="gone"
android:layout_marginLeft="100dp"
android:gravity="center"> <ImageView
android:id="@+id/activity_login_qq_text"
android:layout_width="30dp"
android:layout_height="30dp"
android:scaleType="centerCrop"
android:src="@drawable/ssdk_oks_classic_qq"/>
</LinearLayout> </RelativeLayout> </LinearLayout> </RelativeLayout>
android 登录效果的更多相关文章
- Android Material Design控件学习(三)——使用TextInputLayout实现酷市场登录效果
前言 前两次,我们学习了 Android Material Design控件学习(一)--TabLayout的用法 Android Material Design控件学习(二)--Navigation ...
- android采用MVP完整漫画APP、钉钉地图效果、功能完善的音乐播放器、仿QQ动态登录效果、触手app主页等源码
Android精选源码 一个可以上拉下滑的Ui效果,觉得好看可以学学 APP登陆页面适配 一款采用MVP的的完整漫画APP源码 android实现钉钉地图效果源码 一个使用单个文字生成壁纸图片的app ...
- Android动画效果之自定义ViewGroup添加布局动画
前言: 前面几篇文章介绍了补间动画.逐帧动画.属性动画,大部分都是针对View来实现的动画,那么该如何为了一个ViewGroup添加动画呢?今天结合自定义ViewGroup来学习一下布局动画.本文将通 ...
- Android动画效果之Property Animation进阶(属性动画)
前言: 前面初步认识了Android的Property Animation(属性动画)Android动画效果之初识Property Animation(属性动画)(三),并且利用属性动画简单了补间动画 ...
- Android动画效果之初识Property Animation(属性动画)
前言: 前面两篇介绍了Android的Tween Animation(补间动画) Android动画效果之Tween Animation(补间动画).Frame Animation(逐帧动画)Andr ...
- Android动画效果之Frame Animation(逐帧动画)
前言: 上一篇介绍了Android的Tween Animation(补间动画) Android动画效果之Tween Animation(补间动画),今天来总结下Android的另外一种动画Frame ...
- Android动画效果之Tween Animation(补间动画)
前言: 最近公司项目下个版本迭代里面设计了很多动画效果,在以往的项目中开发中也会经常用到动画,所以在公司下个版本迭代开始之前,抽空总结一下Android动画.今天主要总结Tween Animation ...
- Android 抽屉效果的导航菜单实现
Android 抽屉效果的导航菜单实现 抽屉效果的导航菜单 看了很多应用,觉得这种侧滑的抽屉效果的菜单很好. 不用切换到另一个页面,也不用去按菜单的硬件按钮,直接在界面上一个按钮点击,菜单就滑出来,而 ...
- Android Toast效果设置
Android Toast效果设置 Toast是Android中用来显示显示信息的一种机制,和Dialog不一样的是,Toast是没有焦点的,而且Toast显示的时间有限,过一定的时间就会自动消失.总 ...
随机推荐
- VS 通用产品密钥
BWG7X-J98B3-W34RT-33B3R-JVYW9 HMGNV-WCYXV-X7G9W-YCX63-B98R2 HM6NR-QXX7C-DFW2Y-8B82K-WTYJV
- 转 C#反编译后的一些错误改正
Xenocode反编译及代码整理记录1.Xenocode中设置输出数字为十进制 2.输出后中文文本为\uXXXX,可采用编码工具转成中文 3.new ()改成null; 4.反编译后代码中嵌套数组ne ...
- linux安装MySQL5.7记录
目录 linux安装MySQL5.7记录 1. 在根目录下创建文件夹/software和数据库数据文件/data/mysql 2. 从官网下载相应的MySQL版本 3. 解压并移动到/software ...
- Java下载execl表格
Java用POI往execl表格中写数据,并下载下来有两种方式 1.用poil的API创建表格,并设计好表格格式,然后往里面写数据 /** * execl导出 创建表格式,并写入数据 * @param ...
- spring中获取ApplicationContext对象的技巧,含源码说明
第一步,实现接口ApplicationContextAware,重写setApplicationContext方法,下方代码标红的地方,绿色部分 可以通过声明来进行存储到本类中. @Component ...
- 山东省第四届acm解题报告(部分)
Rescue The PrincessCrawling in process... Crawling failed Description Several days ago, a beast ca ...
- javaer有福了,基于Web的mysql数据库管理工具TreeSoft发布了。
基于Web的数据库管理工具TreeSoft数据库管理系统发布快3年了,版本不断更快速迭代开发中,QQ群也积累了300多位粉丝,虽然时不时也掉粉,但总体还是增加中.大家虽然捐赠不多,但是苍蝇再小也是肉啊 ...
- 线程基础的一些理解(一)(java)
一.多线程的基本概念 线程是指进程中的一个执行场景,也就是执行流程,所以我们首先要聊一聊进程,以及进程和线程的关系 1.什么是进程? 一个进程对应一个应用程序,就像我们在windows系统中启动Wo ...
- call,apply,bind
var student={ name:"马云", say:function(){ console.log(this.name); } } var f=student.say; f. ...
- python 递归和二分法
一 内置函数 1. revserd 翻转,返回的是迭代器 # 将 s 倒置 s = '不是上海自来水来自海上' # 方法一 print(s[::-1]) # 方法二 s1 = reversed(s) ...