2012年11月6日
摘要: // 获得LinearLayout layout=(LinearLayout)findViewById(R.id.paging); // 用来存放动态生成的TextView ArrayList<TextView>list=newArrayList<TextView>(); // 获得数据库的记录总条数totalCount=getRowNum();Log.v("totalCount",totalCount+""); // 以每页5条数据划分显示,计算共有几页 intpage=(int)Math.ceil(totalCount/5.0 阅读全文
posted @ 2012-11-06 16:40 lee0oo0 阅读(1201) 评论(0) 推荐(0) 编辑