@Override public void bindView(View row, Context context, final Cursor cursor) { final StatusModel s = StatusModel.from(cursor); View root = row; final ItemView view = (ItemView) root.findViewById(R.id.list_item); setColor(cursor, view); UIHelper.setContent(view, s); UIHelper.setMetaInfo(view, s); UIHelper.setImageClick(view, s.getUserId()); String headUrl = s.getUserProfileImageUrl(); mImageLoader.displayImage(headUrl, view.getImageView()); }
@Override public View newView(Context context, Cursor cursor, ViewGroup parent) { ItemView view = new ItemView(mContext); view.setId(R.id.list_item); return view; }