Android简单的登陆界面的设计开发.docx
- 文档编号:17182895
- 上传时间:2023-07-22
- 格式:DOCX
- 页数:22
- 大小:19.98KB
Android简单的登陆界面的设计开发.docx
《Android简单的登陆界面的设计开发.docx》由会员分享,可在线阅读,更多相关《Android简单的登陆界面的设计开发.docx(22页珍藏版)》请在冰点文库上搜索。
Android简单的登陆界面的设计开发
通信实训报告
-Android移动平台开发
学院:
信息工程学院
班级:
学号:
姓名:
实训内容:
一.1.Andriod的简介
Android。
2011年初数据显示,仅正式上市两年的操作系统Android已经超越称霸十年的塞班系统,使之跃居全球最受欢迎的智能手机平台。
现在,Android系统不但应用于智能手机,也在平板电脑市场急速扩张,在智能MP4方面也有较大发展。
采用Android系统主要厂商包括台湾的HTC,(第一台谷歌的手机G1由HTC生产代工)美国摩托罗拉,SE等,中国大陆厂商如:
魅族(M9),华为、中兴、联想、蓝魔等。
二.1软件下载
AndroidSDK,网址是.
JDK的下载地址。
Eclipse的下载网址是
第一步:
下载AndroidSDK
网址是
选择"AvailablePackages",选择想安装的版本(我是全选了,省事),然后单击“InstallSelected”->选择“AcceptAll”,再单击“InstallAccepted”就可以在线安装了。
第二步:
安装JDK
A下载JDK。
AndroidSDK需要JDK5以上的版本。
JDK6的下载地址。
B安装JDK。
下载完成后进行正常双击、安装,这里就不说了。
。
。
C配置Java环境变量
1配置JavaHome。
复制Java的安装路径,右键单击“我的电脑”->“属性”->“高级”—>“环境变量”中新建环境变量java_home,变量值为java安装路径。
2配置Path。
右键单击“我的电脑”->“属性”->“高级”—>“环境变量”,在“系统环境变量”中编辑Path便来了个,添加Java的bin目录到其中。
变量与变量中间使用分号“;”分隔。
3配置classpath。
右键单击“我的电脑”->“属性”->“高级”—>“环境变量”,在“系统环境变量”中新建一个系统变量名称为“classpath”,变量值为半角句号“.”
第三步:
下载Eclipse
。
下载后解压可以直接使用。
下载安装ADT。
这里介绍通过Eclipse在线更新的方式安装。
1启动Eclipse,选择“Help”->“InstallNewSoftware.....”
2单击“Add.....”添加一个更新站点(注意:
站点http后面不要加s)否则可能连接失败。
(Name:
ADT;Location:
)
3添加好后,勾选“DeveloperTools”单击“Next”进行更新安装。
三.基于JAVA平台的android的UI登陆界面的设计
2.Eclipse软件的使用。
8.对按键(Button)的监听。
9.编写.JAVA和.XML文件。
实训目的:
1.学会并熟练使用Eclipse,SDK,JDK。
2.了解和掌握android移动平台开发的相关知识。
3.灵活运用android用户界面UI技术。
4.熟悉常用的UI组件,UI布局,UI元素。
5.能够简单的编写界面的布局(XML)文件。
6.能够简单的编写常用UI组件相关的JAVA代码。
7.最后根据所学习的知识自己可以编写一个有关登陆界面的程序。
设计流程:
流程图
首先分别编写五个activity的布局文件(XML)
M
android: id="@+id/widget0" xmlns: android=android: layout_height="wrap_content"android: layout_width="wrap_content"> android: id="@+id/widget43" android: layout_width="243dp" android: layout_height="37dp" android: text="WelcomeToFIFA2012" android: textSize="22sp" android: textColor="#ff33cc00" android: layout_x="41dp" android: layout_y="35dp"/> android: id="@+id/widget44" android: layout_width="62dp" android: layout_height="23dp" android: background="#ffcccccc" android: text="邮箱" android: textSize="16sp" android: textStyle="bold" android: textColor="#ff000000" android: layout_x="31dp" android: layout_y="107dp"/> android: id="@+id/widget45" android: layout_width="wrap_content" android: layout_height="24dp" android: background="#ffcccccc" android: text="登录密码" android: textSize="16sp" android: textStyle="bold" android: textColor="#ff000000" android: layout_x="29dp" android: layout_y="156dp"/> android: id="@+id/widget46" android: layout_width="168dp" android: layout_height="39dp" android: textSize="18sp" android: layout_x="120dp" android: layout_y="101dp"/> android: id="@+id/widget47" android: layout_width="169dp" android: layout_height="39dp" android: textSize="18sp" android: layout_x="119dp" android: layout_y="150dp"/>
O
android: id="@+id/widget0" android: layout_width="fill_parent" android: layout_height="fill_parent" xmlns: android=> android: id="@+id/widget32" android: layout_width="wrap_content" android: layout_height="wrap_content" android: text="新鲜事" android: textSize="16sp" android: textStyle="bold" android: layout_x="26dp" android: layout_y="29dp"/> android: id="@+id/widget33" android: layout_width="59dp" android: layout_height="wrap_content" android: text="好友" android: textSize="16sp" android: textStyle="bold" android: layout_x="131dp" android: layout_y="31dp"/> android: id="@+id/widget34" android: layout_width="wrap_content" android: layout_height="wrap_content" android: text="个人资料" android: textSize="16sp" android: textStyle="bold" android: layout_x="232dp" android: layout_y="30dp"/> android: id="@+id/widget35" android: layout_width="199dp" android: layout_height="39dp" android: text="发帖" android: textStyle="bold" android: layout_x="59dp" android: layout_y="141dp"/> android: id="@+id/widget36" android: layout_width="197dp" android: layout_height="42dp" android: text="留言" android: textStyle="bold" android: layout_x="60dp" android: layout_y="216dp"/>
T
android: id="@+id/widget0" android: layout_width="fill_parent" android: layout_height="fill_parent" xmlns: android=> android: id="@+id/widget32" android: layout_width="112dp" android: layout_height="36dp" android: text="找回密码" android: textSize="22sp" android: textStyle="bold" android: textColor="#ffff0000" android: layout_x="111dp" android: layout_y="29dp"/> android: id="@+id/widget33" android: layout_width="wrap_content" android: layout_height="34dp" android: text="问题提示:" android: textSize="16sp" android: textStyle="bold" android: layout_x="18dp" android: layout_y="86dp"/> android: id="@+id/widget37" android: layout_width="wrap_content" android: layout_height="wrap_content" android: text="你最喜欢的球星是谁?" android: textSize="16sp" android: textStyle="bold" android: layout_x="109dp" android: layout_y="87dp"/> android: id="@+id/widget38" android: layout_width="wrap_content" android: layout_height="wrap_content" android: text="答案:" android: textSize="16sp" android: textStyle="bold" android: layout_x="49dp" android: layout_y="150dp"/> android: id="@+id/widget39" android: layout_width="168dp" android: layout_height="42dp" android: textSize="18sp" android: layout_x="109dp" android: layout_y="143dp"/> android: id="@+id/button4" android: layout_width="75dp" android: layout_height="47dp" android: text="OK" android: textStyle="bold" android: layout_x="53dp" android: layout_y="261dp"/> android: id="@+id/widget41" android: layout_width="72dp" android: layout_height="47dp" android: text="CANCLE" android: textStyle="bold" android: layout_x="194dp" android: layout_y="261dp"/>
T
android: id="@+id/widget0" android: layout_width="fill_parent" android: layout_height="fill_parent" xmlns: android=> android: id="@+id/widget60" android: layout_width="wrap_content" android: layout_height="wrap_content" android: text="注册信息" android: textStyle="bold" android: layout_x="113dp" android: layout_y="32dp"/> android: id="@+id/widget61" android: layout_width="53dp" android: layout_height="30dp" android: text="姓名:" android: textSize="16sp" android: textStyle="bold" android: layout_x="27dp" android: layout_y="78dp"/> android: id="@+id/widget62" android: layout_width="56dp" android: layout_height="30dp" android: text="昵称:" android: textSize="16sp" android: textStyle="bold" android: layout_x="26dp" android: layout_y="127dp"/> android: id="@+id/widget63" android: layout_width="88dp" android: layout_height="25dp" android: text="证件号码:" android: textSize="16sp" android: textStyle="bold" android: layout_x="9dp" android: layout_y="174dp"/> android: id="@+id/widget64" android: layout_width="189dp" android: layout_height="39dp" android: textSize="18sp" android: layout_x="98dp" android: layout_y="72dp"/> android: id="@+id/widget65" android: layout_width="189dp" android: layout_height="41dp" android: textSize="18sp" android: layout_x="98dp" android: layout_y="119dp"/> android: id="@+id/widget66" android: layout_width="193dp" android: layout_height="39dp" android: textSize="18sp" android: layout_x="97dp" android: layout_y="169dp"/> android: id="@+id/widget67" android: layout_width="wrap_content" android: layout_height="wrap_content" android: text="男" android: textStyle="bold" android: layout_x="97dp" android: layout_y="216dp"/> android: id="@+id/widget68" android: layout_width="wrap_content" android: layout_height="wrap_content" android: text="女" android: textStyle="bold" android: layout_x="164dp" android: layout_y="216dp"/> android: id="@+id/widget69" android: layout_width="wrap_content" android: layout_height="wrap_content" android: text="性别:" android: textSize="16sp" android: textStyle="bold" android: layout_x="27dp" android: layout_y="226dp"/> android: id="@+id/button5" android: layout_width="116dp" android: layout_height="wrap_content" android: text="提交" android: textStyle="bold" android: layout_x="108
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Android 简单 登陆 界面 设计 开发