本文整理汇总了Java中cn.eoe.app.entity.WikiContentItem类的典型用法代码示例。如果您正苦于以下问题:Java WikiContentItem类的具体用法?Java WikiContentItem怎么用?Java WikiContentItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WikiContentItem类属于cn.eoe.app.entity包,在下文中一共展示了WikiContentItem类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreateView
import cn.eoe.app.entity.WikiContentItem; //导入依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreateView(inflater, container, savedInstanceState);
listview.setXListViewListener(this);
// construct the RelativeLayout
mAdapter = new MyAdapter();
mAdapter.appendToList(items_list);
listview.setAdapter(mAdapter);
listview.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
// TODO Auto-generated method stub
WikiContentItem item = (WikiContentItem) mAdapter
.getItem(position - 1);
startDetailActivity(mActivity, item.getDetail_url(), "教程",
item.getTitle());
}
});
return view;
}
示例2: getView
import cn.eoe.app.entity.WikiContentItem; //导入依赖的package包/类
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
ViewHolder holder;
WikiContentItem item = mList.get(position);
if (convertView == null) {
holder = new ViewHolder();
convertView = mInflater
.inflate(R.layout.wiki_item_layout, null);
holder.title_ = (TextView) convertView
.findViewById(R.id.wiki_title);
holder.title_.setText(item.getTitle());
convertView.setTag(holder);
} else {
holder = (ViewHolder) convertView.getTag();
holder.title_.setText(item.getTitle());
}
return convertView;
}
示例3: appendToList
import cn.eoe.app.entity.WikiContentItem; //导入依赖的package包/类
public void appendToList(List<WikiContentItem> lists) {
if (lists == null) {
return;
}
mList.addAll(lists);
notifyDataSetChanged();
}