本文整理匯總了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();
}