摘要:
// 获得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 阅读全文