小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项目重构之路:架构篇>中已经简单说明了项目的架构,将项目分为了四个层级:模型层.接口层.核心层.界面层.其中,最上层的界面,是变化最频繁的一个层面,也是最复杂最 ...
随机推荐
- django urls.py 中的name 使用方法
使用场景: 当我们在url的时候,一般情况下都是使用很明确的url地址.如在网页里面使用<a href="/login">登录</a>.像这样的链接有很 多 ...
- stream.js
<script src='stream-min.js'></script> 下载 stream.js 2Kb minified streams是什么? Streams 是一个操 ...
- Java_Habse_add
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hb ...
- java篇 之 继承
this代表正在使用类的对象(的引用) java支持重载:允许在同一个类中使用相同的方法名(重载类型只区分参数列表,包括参数 顺序,参数个数,参数数据类型,与方法返回类型无关) 匹配: 方法名 参数列 ...
- P1567
最大子数组和问题,dp或者分治.. #include <bits/stdc++.h> #define rep(i, a, b) for(int i = a; i <= b; i++) ...
- Java笔记 02-LinkedList
介绍:List 接口的链接列表实现.实现所有可选的列表操作,并且允许所有元素(包括 null).除了实现 List 接口外,LinkedList 类还为在列表的开头及结尾 get.remove 和 i ...
- Java后台技术(Dubbo入门)
我现在公司提供的产品是即时通讯软件,因为我从.net桌面应用开发转岗,从java后台转项目经理,让我有幸拥有了后台开发人员所有的权限,所有的后台源码和技术文档对我开放,可惜仅在后台待了3周不到,还没来 ...
- 拓扑排序板子 hihocoder-1174
思路 不断删入度为1的点及其出边. 图解 #include <bits/stdc++.h> using namespace std; const int maxn=1e5+10; vect ...
- Mybatis中mapper.xml的使用
详解多对多,mybatis多对多查询(xml方式和注解方式) 链接:https://blog.csdn.net/qq_42524262/article/details/98383977 链接:http ...
- Q - Saruman's Army POJ - 3069
Saruman the White must lead his army along a straight path from Isengard to Helm's Deep. To keep tra ...