use of org.kymjs.blog.domain.OSCBlogList in project KJFrameForAndroid by kymjs.
the class OSCBlogListFragment method fillUI.
private void fillUI() {
cache = kjh.getStringCache(OSCBLOG_HOST + BLOGLIST_ID);
if (!StringUtils.isEmpty(cache)) {
OSCBlogList dataRes = Parser.xmlToBean(OSCBlogList.class, cache);
mDatas.addAll(dataRes.getBloglist());
if (adapter == null) {
adapter = new OSCBlogAdapter(mListView, mDatas, R.layout.item_list_blog);
mListView.setAdapter(adapter);
} else {
adapter.refresh(mDatas);
}
mEmptyLayout.dismiss();
}
refresh();
}
Aggregations