Search in sources :

Example 1 with OSCBlogList

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();
}
Also used : OSCBlogAdapter(org.kymjs.blog.adapter.OSCBlogAdapter) OSCBlogList(org.kymjs.blog.domain.OSCBlogList)

Aggregations

OSCBlogAdapter (org.kymjs.blog.adapter.OSCBlogAdapter)1 OSCBlogList (org.kymjs.blog.domain.OSCBlogList)1