Example #1
0
 @Override
 public View getView(int position, View convertView, ViewGroup parent) {
   // TODO Auto-generated method stub
   BookItem item = this.getItem(position);
   View view = LayoutInflater.from(getContext()).inflate(this._resid, null);
   TextView bookname = (TextView) view.findViewById(R.id.book_name);
   TextView bookauthor = (TextView) view.findViewById(R.id.book_author);
   TextView bookstat = (TextView) view.findViewById(R.id.book_stat);
   bookstat.setText(item.getBookStatusStr());
   bookname.setText(item.getBookName());
   bookauthor.setText(item.getBookAuthor());
   return view;
 }