Activity和Intent 任务一 打招呼
来源:互联网 发布:淘宝网店出售交易平台 编辑:程序博客网 时间:2024/05/20 02:53
1. 实验目的
1. 掌握如何创建一个 Activity
2. 掌握如何在 Activity 中添加控件并进行事件处理
3. 掌握如何通过 Intent 启动另外一个 Activity
4. 掌握如何通过 Intent 在多个 Activity 之间传递数据
5. 掌握 Activity 的生命周期
2. 实验仪器
装有 Android 开发环境的计算机
任务 1:打招呼
1. 运行效果图
在MainActivity中
在activity_main.xml
在toast_layout.xml中
在AndroidManifest.xml中
在drawable中会有两个xml,用来添加颜色和边框
2. 训练目标
1) EditText 组件的使用
2) ImageButton 组件的使用
3) Toast 组件的使用
4) Android 中的事件处理
参照: EditText http://www.cnblogs.com/over140/archive/2010/09/02/1815439.html
http://androiddoc.qiniudn.com/reference/android/widget/EditText.html
ImageButtonhttp://www.cnblogs.com/over140/archive/2010/09/20/1831459.html
Toast http://androiddoc.qiniudn.com/reference/android/widget/Toast.html
1 0
- Activity和Intent 任务一 打招呼
- 1.1Activity 和Intent之打招呼
- Activity-Intent 打招呼
- 任务一,打招呼。
- 实验二.任务一.打招呼
- 实验二--任务一--打招呼
- 实验2 Activity和Intent-任务1
- 实验二 任务一 打招呼APP
- Android(一) activity、intent知识和总结
- 0315一、Activity是什么和Intent
- 实验2 Activity和Intent-任务2:标准体重计算器
- 实验2 Activity和Intent-任务3:理解Task
- 实验二——任务一——打招呼
- 任务一——————打招呼
- 实验任务1 打招呼
- 任务1---打招呼
- 任务1---打招呼
- Activity和Intent示例
- Redis中文学习文档redis.cn
- Python 笔记
- dump struct sw_flow from vport/datapath
- Installation failed with message INSTALL_FAILED_USER_RESTRICTED错误
- org.w3c.dom(java dom)解析XML文档
- Activity和Intent 任务一 打招呼
- 增加表空间大小的四种方法
- 在CentOS下配置Hadoop
- andriod Activity 的四种启动方式
- leetcode 518. Coin Change 2
- EXtern "C"解析
- excel中科学计数法,导致sql失败问题
- mysql赋予权限
- 第一次提薪加资如何才能成功