下载此文档

安卓开发实验报告.doc


文档分类:研究报告 | 页数:约14页 举报非法文档有奖
1/14
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/14 下载此文档
文档列表 文档介绍
页脚下载后可删除,如有侵权请告知删除!
安卓开发实验报告
目录
页面跳转
长按图标抖动以及显示删除
页面跳转
功能:通过点击button实现2个activity之间的跳转。


页脚下载后可删除,如有侵权请告知删除!
完整代码
public class UI_Test extends Activity {
***@Override
protected void onCreate(Bundle savedInstanceState) {
(savedInstanceState);
setContentView();

Button bt = (Button)findViewById();
(new OnClickListener());
}

class OnClickListener implements {

public void onClick(View v){
EditText name = (EditText)findViewById();
EditText password = (EditText)findViewById();

Bundle data=new Bundle();
("name", ().toString());
("password", ().toString());
Intent intent = new Intent(,);

(data);
startActivity(intent);
}
}
public class UI_Result extends Activity {
***@Override
protected void onCreate(Bundle savedInstanceState) {
(savedInstanceState);
setContentView();

TextView name = (TextView)findViewById();
TextView password = (TextView)findViewById();

Intent intent=getIntent();
Bundle result = ();
("您的用户名为: "+("name"));
("您的密码为: "+("password"));
页脚下载后可删除,如有侵权请告知删除!
}
}

<?xml version="" encoding="utf-8"?>
<TableLayout xmlns:android=" :// /apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height=

安卓开发实验报告 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数14
  • 收藏数0 收藏
  • 顶次数0
  • 上传人相惜
  • 文件大小222 KB
  • 时间2021-10-25
最近更新