Search in sources :

Example 1 with ItemHolder

use of com.abewy.android.apps.klyph.adapter.holder.ItemHolder in project Klyph by jonathangerbaud.

the class ItemAdapter method mergeViewWithData.

@Override
protected void mergeViewWithData(View view, GraphObject data) {
    ItemHolder holder = (ItemHolder) view.getTag();
    Item item = (Item) data;
    holder.getName().setText(item.getName());
    holder.getDesc().setAutoLinkMask(Linkify.ALL);
    holder.getDesc().setText(item.getDesc());
    holder.getShadow().setVisibility(item.getShadow() == true ? View.VISIBLE : View.GONE);
}
Also used : Item(com.abewy.klyph.items.Item) ItemHolder(com.abewy.android.apps.klyph.adapter.holder.ItemHolder)

Aggregations

ItemHolder (com.abewy.android.apps.klyph.adapter.holder.ItemHolder)1 Item (com.abewy.klyph.items.Item)1