public List<Txts> getOneText(ShanbeiDB shanbeiDB, int id) { List<Txts> txt = new ArrayList<Txts>(); Txts t = new Txts(); t.setContent(shanbeiDB.loadOneText(id).getContent()); t.setType(2); txt.add(t); return txt; }
public List<Txts> getOneText_level(Context context, ShanbeiDB shanbeiDB, int id, int lel) { List<Txts> txt = new ArrayList<Txts>(); Txts t = new Txts(); t.setContent(shanbeiDB.loadOneText(id).getContent()); WordBll wordBll = new WordBll(); List<Integer> LI = new ArrayList<Integer>(); List<wrs_lvl> listDic = wordBll.queryWDS(context, shanbeiDB); LI = T_2_W(shanbeiDB.loadOneText(id).getContent(), listDic, lel); t.setIdOfHigh(LI); t.setType(2); // 2表示全文 txt.add(t); return txt; }