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显示的时间有限,过一定的时间就会自动消失.总 ...
随机推荐
- thinkphp 网址后台典型页面
知识点: 1.select a提交后 返回选中项 选中项 value是id 但是要显示name b遍历和列举两种形式 <select name="class_id" clas ...
- [Redis] redis在centos下安装测试
下载软件,使用命令wget xxx,参数:url 例如: wget http://download.redis.io/releases/redis-3.0.0.tar.gz 解压缩,使用命令tar,参 ...
- Java基础——String类(一)
一.String 类代表字符串 Java 程序中的所有字符串字面值(如 "abc" )都作为此类的实例实现. 字符串是常量:它们的值在创建之后不能更改.字符串缓冲区支持可变的字符串 ...
- 并发修改异常(ConcurrentModificationException)
并发修改异常(ConcurrentModificationException) 这个异常,使用集合的时候应该很常见,这个异常产生的原因是因为java中不允许直接修改集合的结构. 先贴上个有趣的例子,给 ...
- Windows系统的消息机制
1)Add the window to the clipboard viewer chain. 通过SetClipboardViewer()传入窗口句柄,所有监视剪贴板的窗口句柄会组成一个链表(后来者 ...
- 初学HTML-4
img标签:<img src=" "> src——source缩写,告诉img标签需要显示的图片名称 属性:width:宽度 height:高度.若未指定宽和高,则 ...
- 微信小程序css画三角形内有文字
<view class="productStatus"> <span> <em>已上架</em> </span> < ...
- 通过api管理grafana
1. 生成api key 参考: http://docs.grafana.org/http_api/auth/ 2.点击添加后,生成了个获取一个deshboards的api样例 3.放到linux上运 ...
- SD从零开始41-44
[原创] SD从零开始41 科目确定(Account determination) 使用科目确定Using Account Determination 你将需要在几个不同的领域确定将要记账的科目: 用 ...
- hihocoder [Offer收割]编程练习赛12 [1495] ---- 矩形分割
原题链接 矩形分割 算法分析: 解决该题要用到"并查集"的思想. 这里有一篇不错的博客介绍并查集: 并查集(Union-Find)算法介绍 记 int total=N*M,这里会有 ...