Android中Intent初识.docx
《Android中Intent初识.docx》由会员分享,可在线阅读,更多相关《Android中Intent初识.docx(20页珍藏版)》请在冰豆网上搜索。
Android中Intent初识
Intent初识
Intent是一个对象,它包含了一组信息
1.Componentname:
组件名称
2.Action:
动作
3.Data:
数据
4.Category
5.Extras:
额外的信息,通常为一些键值对
6.Flags
实例一:
使用Intent实现多个Activity之间的跳转,多个Activity可能并不在一个应用程序中,可能在多个应用程序中
再次运行,结果如下:
strings.xml文件类容如下:
xmlversion="1.0"encoding="utf-8"?
>
点击获取到第一个Activity传过来的信息!
IntentTest
点击跳转到第二个Activity
main.xml文件类容如下:
android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="fill_parent">android:layout_width="fill_parent"android:layout_height="wrap_content"android:text="@string/second"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/second"android:text="@string/second"/>second.xml文件内容如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="fill_parent"android:layout_height="wrap_content"android:text="@string/first"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/first"android:text="@string/first"/>IntentestActivity.java文件类容如下:packagejiao.jiao;importandroid.app.Activity;importandroid.content.Intent;importandroid.os.Bundle;importandroid.view.View;importandroid.widget.Button;publicclassIntentTestActivityextendsActivity{/**Calledwhentheactivityisfirstcreated.*/privateButtonbutton;@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);button=(Button)this.findViewById(R.id.second);button.setOnClickListener(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){Intentintent=newIntent();//使用Intent的无参构造函数//其中两个参数,表示,从哪个Activity跳转到哪个Activityintent.setClass(IntentTestActivity.this,secondActivity.class);//可以向第二个Activity传递数据intent.putExtra("usr","jiaoxiaohua");startActivity(intent);}});}}secondActivity.java内容如下:packagejiao.jiao;importandroid.app.Activity;importandroid.content.Intent;importandroid.os.Bundle;importandroid.view.View;importandroid.widget.Button;importandroid.widget.Toast;publicclasssecondActivityextendsActivity{/**Calledwhentheactivityisfirstcreated.*/privateButtonbutton;@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.second);button=(Button)this.findViewById(R.id.first);button.setOnClickListener(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){Intentintent=getIntent();//捕获传递过来的Intent对象Stringstring=intent.getStringExtra("usr");//通过键获取传递过来的信息Toast.makeText(secondActivity.this,string,2).show();}});}}如果此时测试,会出现问题因为每多一个Activity就要在AndroidManifest.xml中注册AndroidManifest.xml类容如下:xmlversion="1.0"encoding="utf-8"?>android="package="jiao.jiao"android:versionCode="1"android:versionName="1.0">minSdkVersion="10"/>icon="@drawable/icon"android:label="@string/app_name">name=".IntentTestActivity"android:label="@string/app_name">name="android.intent.action.MAIN"/>name="android.intent.category.LAUNCHER"/>name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
android="
android:
orientation="vertical"
layout_width="fill_parent"
layout_height="fill_parent"
android:layout_width="fill_parent"android:layout_height="wrap_content"android:text="@string/second"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/second"android:text="@string/second"/>second.xml文件内容如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="fill_parent"android:layout_height="wrap_content"android:text="@string/first"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/first"android:text="@string/first"/>IntentestActivity.java文件类容如下:packagejiao.jiao;importandroid.app.Activity;importandroid.content.Intent;importandroid.os.Bundle;importandroid.view.View;importandroid.widget.Button;publicclassIntentTestActivityextendsActivity{/**Calledwhentheactivityisfirstcreated.*/privateButtonbutton;@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);button=(Button)this.findViewById(R.id.second);button.setOnClickListener(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){Intentintent=newIntent();//使用Intent的无参构造函数//其中两个参数,表示,从哪个Activity跳转到哪个Activityintent.setClass(IntentTestActivity.this,secondActivity.class);//可以向第二个Activity传递数据intent.putExtra("usr","jiaoxiaohua");startActivity(intent);}});}}secondActivity.java内容如下:packagejiao.jiao;importandroid.app.Activity;importandroid.content.Intent;importandroid.os.Bundle;importandroid.view.View;importandroid.widget.Button;importandroid.widget.Toast;publicclasssecondActivityextendsActivity{/**Calledwhentheactivityisfirstcreated.*/privateButtonbutton;@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.second);button=(Button)this.findViewById(R.id.first);button.setOnClickListener(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){Intentintent=getIntent();//捕获传递过来的Intent对象Stringstring=intent.getStringExtra("usr");//通过键获取传递过来的信息Toast.makeText(secondActivity.this,string,2).show();}});}}如果此时测试,会出现问题因为每多一个Activity就要在AndroidManifest.xml中注册AndroidManifest.xml类容如下:xmlversion="1.0"encoding="utf-8"?>android="package="jiao.jiao"android:versionCode="1"android:versionName="1.0">minSdkVersion="10"/>icon="@drawable/icon"android:label="@string/app_name">name=".IntentTestActivity"android:label="@string/app_name">name="android.intent.action.MAIN"/>name="android.intent.category.LAUNCHER"/>name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
layout_height="wrap_content"
text="@string/second"
/>
android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/second"android:text="@string/second"/>second.xml文件内容如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="fill_parent"android:layout_height="wrap_content"android:text="@string/first"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/first"android:text="@string/first"/>IntentestActivity.java文件类容如下:packagejiao.jiao;importandroid.app.Activity;importandroid.content.Intent;importandroid.os.Bundle;importandroid.view.View;importandroid.widget.Button;publicclassIntentTestActivityextendsActivity{/**Calledwhentheactivityisfirstcreated.*/privateButtonbutton;@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);button=(Button)this.findViewById(R.id.second);button.setOnClickListener(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){Intentintent=newIntent();//使用Intent的无参构造函数//其中两个参数,表示,从哪个Activity跳转到哪个Activityintent.setClass(IntentTestActivity.this,secondActivity.class);//可以向第二个Activity传递数据intent.putExtra("usr","jiaoxiaohua");startActivity(intent);}});}}secondActivity.java内容如下:packagejiao.jiao;importandroid.app.Activity;importandroid.content.Intent;importandroid.os.Bundle;importandroid.view.View;importandroid.widget.Button;importandroid.widget.Toast;publicclasssecondActivityextendsActivity{/**Calledwhentheactivityisfirstcreated.*/privateButtonbutton;@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.second);button=(Button)this.findViewById(R.id.first);button.setOnClickListener(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){Intentintent=getIntent();//捕获传递过来的Intent对象Stringstring=intent.getStringExtra("usr");//通过键获取传递过来的信息Toast.makeText(secondActivity.this,string,2).show();}});}}如果此时测试,会出现问题因为每多一个Activity就要在AndroidManifest.xml中注册AndroidManifest.xml类容如下:xmlversion="1.0"encoding="utf-8"?>android="package="jiao.jiao"android:versionCode="1"android:versionName="1.0">minSdkVersion="10"/>icon="@drawable/icon"android:label="@string/app_name">name=".IntentTestActivity"android:label="@string/app_name">name="android.intent.action.MAIN"/>name="android.intent.category.LAUNCHER"/>name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
layout_width="wrap_content"
id="@+id/second"
second.xml文件内容如下:
xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="fill_parent"android:layout_height="wrap_content"android:text="@string/first"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/first"android:text="@string/first"/>
xmlns:
layout_width="match_parent"
layout_height="match_parent">
android:layout_width="fill_parent"android:layout_height="wrap_content"android:text="@string/first"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/first"android:text="@string/first"/>
text="@string/first"
android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/first"android:text="@string/first"/>
id="@+id/first"
IntentestActivity.java文件类容如下:
packagejiao.jiao;
importandroid.app.Activity;
importandroid.content.Intent;
importandroid.os.Bundle;
importandroid.view.View;
importandroid.widget.Button;
publicclassIntentTestActivityextendsActivity{
/**Calledwhentheactivityisfirstcreated.*/
privateButtonbutton;
@Override
publicvoidonCreate(BundlesavedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
button=(Button)this.findViewById(R.id.second);
button.setOnClickListener(newView.OnClickListener(){
publicvoidonClick(Viewv){
Intentintent=newIntent();//使用Intent的无参构造函数
//其中两个参数,表示,从哪个Activity跳转到哪个Activity
intent.setClass(IntentTestActivity.this,secondActivity.class);
//可以向第二个Activity传递数据
intent.putExtra("usr","jiaoxiaohua");
startActivity(intent);
}
});
secondActivity.java内容如下:
importandroid.widget.Toast;
publicclasssecondActivityextendsActivity{
setContentView(R.layout.second);
button=(Button)this.findViewById(R.id.first);
Intentintent=getIntent();//捕获传递过来的Intent对象
Stringstring=intent.getStringExtra("usr");//通过键获取传递过来的信息
Toast.makeText(secondActivity.this,string,2).show();
如果此时测试,会出现问题
因为每多一个Activity就要在AndroidManifest.xml中注册
AndroidManifest.xml类容如下:
android="package="jiao.jiao"android:versionCode="1"android:versionName="1.0">minSdkVersion="10"/>icon="@drawable/icon"android:label="@string/app_name">name=".IntentTestActivity"android:label="@string/app_name">name="android.intent.action.MAIN"/>name="android.intent.category.LAUNCHER"/>name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
package="jiao.jiao"
versionCode="1"
versionName="1.0">
minSdkVersion="10"/>icon="@drawable/icon"android:label="@string/app_name">name=".IntentTestActivity"android:label="@string/app_name">name="android.intent.action.MAIN"/>name="android.intent.category.LAUNCHER"/>name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
minSdkVersion="10"/>
icon="@drawable/icon"android:label="@string/app_name">name=".IntentTestActivity"android:label="@string/app_name">name="android.intent.action.MAIN"/>name="android.intent.category.LAUNCHER"/>name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
icon="@drawable/icon"android:
label="@string/app_name">
name=".IntentTestActivity"android:label="@string/app_name">name="android.intent.action.MAIN"/>name="android.intent.category.LAUNCHER"/>name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
name=".IntentTestActivity"
name="android.intent.action.MAIN"/>name="android.intent.category.LAUNCHER"/>name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
name="android.intent.action.MAIN"/>
name="android.intent.category.LAUNCHER"/>name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
name="android.intent.category.LAUNCHER"/>
name=".secondActivity"android:label="@string/first">上图标注的地方为注册代码,然后就可以正常运行了创新设计:设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆 Strings.xml文件如下:xmlversion="1.0"encoding="utf-8"?>HelloWorld,RegesterActivity!Regest0r输用户名:输入密码:确认密码:邮箱账号:提交(submit)重置(reset)取消(cansal)记住密码记住地点记住人物登陆取消修改密码欢迎来到登陆界面 main.xml文件如下:xmlversion="1.0"encoding="utf-8"?>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
name=".secondActivity"android:
label="@string/first">
上图标注的地方为注册代码,然后就可以正常运行了
创新设计:
设计一个注册账号的Activity,当注册成功后跳转到登陆界面,用刚注册的账号进行登陆
Strings.xml文件如下:
HelloWorld,RegesterActivity!
Regest0r
输用户名:
输入密码:
确认密码:
邮箱账号:
提交(submit)
重置(reset)
取消(cansal)
记住密码
记住地点
记住人物
登陆
取消
修改密码
欢迎来到登陆界面
main.xml文件如下:
android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
layout_width="match_parent">
android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
stretchColumns="1">
android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
text="@string/usr"
textSize="20dp"
gravity="bottom"
android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/usrEdit"
android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
text="@string/password"
android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit"android:layout_below="@id/usrEdit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
password="true"
id="@+id/passwordEdit"
layout_below="@id/usrEdit"
android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/repassword"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
text="@string/repassword"
android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/repasswordEdit"android:password="true"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/repasswordEdit"
android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/email"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
text="@string/email"
android:layout_height="wrap_content"android:layout_width="fill_parent"android:id="@+id/emailEdit"android:layout_below="@id/repasswordEdit"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/emailEdit"
layout_below="@id/repasswordEdit"
android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/submit"android:text="@string/submit"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/submit"
text="@string/submit"
android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/submit"android:id="@+id/reset"android:text="@string/reset"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
layout_toRightOf="@id/submit"
id="@+id/reset"
text="@string/reset"
android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/reset"android:id="@+id/casal"android:text="@string/casal"/> login.xml文件如下:xmlversion="1.0"encoding="utf-8"?>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
layout_toRightOf="@id/reset"
id="@+id/casal"
text="@string/casal"
login.xml文件如下:
xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
android="android:orientation="vertical"android:layout_width="fill_parent"android:layout_height="wrap_content"android:stretchColumns="1">android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/usr"android:textSize="20dp"android:gravity="bottom"/>android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
android:layout_height="wrap_content"android:layout_width="match_parent"android:id="@+id/usrEdit1"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/usrEdit1"
android:layout_height="wrap_content"android:layout_width="wrap_content"android:text="@string/password"android:textSize="20dp"/>android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
android:layout_height="wrap_content"android:layout_width="fill_parent"android:password="true"android:id="@+id/passwordEdit1"/>xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/passwordEdit1"
xmlns:android="android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/remeber"android:text="@string/remeber"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/remeber"
text="@string/remeber"
android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/place"android:text="@string/place"/>android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/place"
text="@string/place"
android:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/people"android:text="@string/people"/>android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/people"
text="@string/people"
android="android:orientation="vertical"android:layout_height="fill_parent"android:layout_width="match_parent">android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
android:layout_height="wrap_content"android:layout_width="wrap_content"android:id="@+id/denglu"android:text="@string/login"/>android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
id="@+id/denglu"
text="@string/login"
android:layout_height="wrap_content"android:layout_width="wrap_content"android:layout_toRightOf="@id/denglu"andro
layout_toRightOf="@id/denglu"
andro
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1