小KING教你做android项目(二)---实现登陆页面并跳转和简单的注册页面
- <span style="font-family:Arial;font-size:18px;"><?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="@drawable/bkcolor"
- android:orientation="vertical" >
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="50dp"
- android:background="@drawable/topbg2"
- android:gravity="center_vertical"
- android:orientation="horizontal" >
- <Button
- android:id="@+id/cancel"
- android:layout_width="65.83dp"
- android:layout_height="30.5dp"
- android:layout_marginLeft="10dp"
- android:background="@drawable/normal_btn"
- android:text="@string/cancel"
- android:textColor="#ffffff" />
- <TextView
- android:id="@+id/tv_friend_title"
- android:layout_width="wrap_content"
- android:layout_height="50dip"
- android:layout_weight="1"
- android:gravity="center"
- android:text="AppName"
- android:textColor="#ffffff"
- android:textSize="20dip" />
- <Button
- android:id="@+id/login_in"
- android:layout_width="65.83dp"
- android:layout_height="30.5dp"
- android:layout_marginRight="10dp"
- android:background="@drawable/normal_btn"
- android:text="@string/login_in"
- android:textColor="#ffffff" />
- </LinearLayout>
- <RelativeLayout
- android:id="@+id/editRel"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content" >
- <RelativeLayout
- android:id="@+id/accountRel"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="14dp"
- android:background="@drawable/preference_first_item"
- android:clickable="true"
- android:gravity="center_vertical" >
- <TextView
- android:id="@+id/account"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:padding="8dp"
- android:text="@string/account"
- android:textColor="#000"
- android:textSize="17sp" />
- <EditText
- android:id="@+id/accountEdittext"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dip"
- android:layout_toRightOf="@id/account"
- android:background="@null"
- android:hint="@string/account"
- android:textSize="15sp" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/pwdRel"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/accountRel"
- android:background="@drawable/preference_last_item"
- android:clickable="true"
- android:gravity="center_vertical" >
- <TextView
- android:id="@+id/pwd"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:padding="8dp"
- android:text="@string/pwd"
- android:textColor="#000"
- android:textSize="17sp" />
- <EditText
- android:id="@+id/pwdEdittext"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dip"
- android:layout_toRightOf="@id/pwd"
- android:background="@null"
- android:hint="@string/pwd"
- android:textSize="15sp" />
- </RelativeLayout>
- </RelativeLayout>
- <TextView
- android:id="@+id/sound_help"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="15dip"
- android:layout_marginLeft="15dip"
- android:text="@string/forget_pwd"
- android:textColor="#29981A" />
- </LinearLayout></span>

});
小KING教你做android项目(二)---实现登陆页面并跳转和简单的注册页面的更多相关文章
- 小KING教你做android项目(一)
写在项目开始之前: 最近关于android的视频教程,入门的书籍也已经有很多了,例如我的入门就是看了mars的视频教程.但是这么一圈学习下来,觉得真正快速提高的,不是在看视频,而是在实际工作中动手做项 ...
- Android笔记-4-实现登陆页面并跳转和简单的注册页面
实现登陆页面并跳转和简单的注册页面 首先我们来看看布局的xml代码 login.xml <span style="font-family:Arial;font-size:18px; ...
- 基于spring-boot的社区社交微信小程序,适合做脚手架、二次开发
基于spring-boot的社区社交微信小程序,适合做脚手架.二次开发 代码地址如下:http://www.demodashi.com/demo/13867.html 1 概述 笔者做的一个后端基于s ...
- 手把手教你做JavaWeb项目:登录模块
现如今,无论是客户端还是移动端,无论是游戏登陆还是社交平台登陆,无处不在的“登陆”.那么你知道怎么制作吗?今天就为你娓娓道来: 用户登录 在各大信息管理系统中,登录功能是必不可少的,他的作用就是验证用 ...
- 一步一步来做WebQQ机器人-(二)(第一次登陆)
// 预计会有这些步骤,当然某些步骤可能会合并: 验证码 第一次登陆 第二次登陆 保持在线和接收消息 获取好友和群列表 发送消息 变成智能的(*゚∀゚*) webqq的登陆,分为2步,本文主要讲第一次 ...
- Android项目页面跳转小Demo
近期在做Android项目的开发,刚刚接触会有非常多新东西须要学习,从环境的搭建到语言的熟悉都是须要一步步完毕的,接下来就拿一个页面跳转的样例来和大家分享一下自己的心得体会. 採用的架构: Demo中 ...
- android项目大全,总有你所需的
注:打开请贴网址.有些直接通过链接打开的不对. 1.相对布局实例 http://kukuqiu.iteye.com/blog/1018396 2.Log图文具体解释(Log.v,Log.d,Log. ...
- (转载) android项目大全,总有你所需的
目录视图 摘要视图 订阅 赠书 | 异步2周年,技术图书免费选 程序员8月书讯 项目管理+代码托管+文档协作,开发更流畅 [置顶] android项目大全,总有你所需的 标签: 源 ...
- (转)Android项目重构之路:界面篇
在前一篇文章<Android项目重构之路:架构篇>中已经简单说明了项目的架构,将项目分为了四个层级:模型层.接口层.核心层.界面层.其中,最上层的界面,是变化最频繁的一个层面,也是最复杂最 ...
随机推荐
- python获取进程id号:
python获取进程id号: os.getpid()获取当前进程id os.getppid()获取父进程id
- esp8266(wifi)模块调试记录
1.要注意usb转TTL接口上的晶振 如果晶振是12Mhz,可能就收不到反馈,因为12Mhz波特率会有误差.
- java8date
Java 8:新的时间和日期API 在Java 8之前,所有关于时间和日期的API都存在各种使用方面的缺陷,因此建议使用新的时间和日期API,分别从旧的时间和日期的API的缺点以及解决方法.Java ...
- 使用docker踩过的坑
最近需要使用docker,但是win10电脑的系统不是docker windows适用版本,没法在windows上安装 于是就上centos虚拟机里面装了一个docker docker pull文件的 ...
- 吴裕雄 python 机器学习——数据预处理字典学习模型
from sklearn.decomposition import DictionaryLearning #数据预处理字典学习DictionaryLearning模型 def test_Diction ...
- kettel路径配置
背景 kettel 8.3 jdk13.0.1 jre1.8.0 配置 PENTAHO_JAVA_HOME:C:\Program Files (x86)\Java\jre1.8.0_241 JAVA_ ...
- jq鼠标移入移除事件
mouseover与mouseenter 不论鼠标指针穿过被选元素或其子元素,都会触发 mouseover 事件.只有在鼠标指针穿过被选元素时,才会触发 mouseenter 事件. mouseout ...
- C 语言实例 -求分数数列1/2+2/3+3/5+5/8+...的前n项和
程序分析:抓住分子与分母的变化规律:分子a:1,2,3,5,8,13,21,34,55,89,144...分母b:2,3,5,8,13,21,34,55,89,144,233...分母b把数赋给了分子 ...
- Vue-全局变量和方法
一.单文件引入 1.创建存放全局变量和方法的vue文件 Common.uve <script> const userName = 'yangjing'; function add(a,b) ...
- Top 9 colleges in the world from 2010 to 2020, AI and interdisciplinary areas.
http://csrankings.org/