计算机系统综合课程设计-实验报告标准格式(7)

2018-11-17 18:41

}); } private void ShowInfo(int intType) {// 用来根据传入的管理类型,显示相应的信息 String[] strInfos = null;// 定义字符串数组,用来存储支出信息 ArrayAdapter arrayAdapter = null;// 创建ArrayAdapter对象 strType = \为strType变量赋值 OutaccountDAO outaccountinfo = new OutaccountDAO(Outaccountinfo.this);// 创建OutaccountDAO对象 // 获取所有支出信息,并存储到List泛型集合中 List listoutinfos = outaccountinfo.getScrollData(0, (int) outaccountinfo.getCount()); strInfos = new String[listoutinfos.size()];// 设置字符串数组的长度 int i = 0;// 定义一个开始标识 for (Tb_outaccount tb_outaccount : listoutinfos) {// 遍历List泛型集合 // 将支出相关信息组合成一个字符串,存储到字符串数组的相应位置 strInfos[i] = tb_outaccount.getid() + \+ tb_outaccount.getType() + \\+ String.valueOf(tb_outaccount.getMoney()) + \元 \ + tb_outaccount.getTime(); i++;// 标识加1 } // 使用字符串数组初始化ArrayAdapter对象 arrayAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, strInfos); lvinfo.setAdapter(arrayAdapter);// 为ListView列表设置数据源 } @Override protected void onRestart() { // TODO Auto-generated method stub super.onRestart();// 实现基类中的方法 ShowInfo(R.id.btnoutinfo);// 显示收入信息 } } Infomanage.main(数据管理)

30

android:layout_height=\ android:layout_weight=\ android:orientation=\ >

31

32

33

计算机系统综合课程设计-实验报告标准格式(7).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:观赏植物学试题带答案(黄淮学院版)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: