Dao dao = new Dao(yi_ji_lu_zhang_dan.this);
List<GetOneRecord> list = dao.getAllRecord();
//创建迭代器
Iterator<GetOneRecord> iterator = list.iterator();
while (iterator.hasNext()){
GetOneRecord getOneRecord = iterator.next();//迭代器的使用方法
Date date = new Date(getOneRecord.getTime());
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//格式化时间
String sdate = dateFormat.format(date);
//格式化字符串
str = String.format("%-3d ",getOneRecord.getMark()) + String.format("%-20s ",getOneRecord.getContent()) + String.format("%-8s ",getOneRecord.getAmount()) + getOneRecord.getTime();
textView = new TextView();
}