Search in sources :

Example 1 with ItemView

use of greendroid.widget.itemview.ItemView in project GreenDroid by cyrilmottier.

the class ItemAdapter method getView.

public View getView(int position, View convertView, ViewGroup parent) {
    final Item item = (Item) getItem(position);
    ItemView cell = (ItemView) convertView;
    if (cell == null) {
        cell = item.newView(mContext, null);
        cell.prepareItemView();
    }
    cell.setObject(item);
    return (View) cell;
}
Also used : Item(greendroid.widget.item.Item) LongTextItem(greendroid.widget.item.LongTextItem) TextItem(greendroid.widget.item.TextItem) DescriptionItem(greendroid.widget.item.DescriptionItem) ThumbnailItem(greendroid.widget.item.ThumbnailItem) SeparatorItem(greendroid.widget.item.SeparatorItem) SubtitleItem(greendroid.widget.item.SubtitleItem) SubtextItem(greendroid.widget.item.SubtextItem) DrawableItem(greendroid.widget.item.DrawableItem) ProgressItem(greendroid.widget.item.ProgressItem) ItemView(greendroid.widget.itemview.ItemView) View(android.view.View) ItemView(greendroid.widget.itemview.ItemView)

Aggregations

View (android.view.View)1 DescriptionItem (greendroid.widget.item.DescriptionItem)1 DrawableItem (greendroid.widget.item.DrawableItem)1 Item (greendroid.widget.item.Item)1 LongTextItem (greendroid.widget.item.LongTextItem)1 ProgressItem (greendroid.widget.item.ProgressItem)1 SeparatorItem (greendroid.widget.item.SeparatorItem)1 SubtextItem (greendroid.widget.item.SubtextItem)1 SubtitleItem (greendroid.widget.item.SubtitleItem)1 TextItem (greendroid.widget.item.TextItem)1 ThumbnailItem (greendroid.widget.item.ThumbnailItem)1 ItemView (greendroid.widget.itemview.ItemView)1