Search in sources :

Example 6 with PicturePrimaryTextHolder

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

the class TagAdapter method mergeViewWithData.

@Override
protected void mergeViewWithData(View view, GraphObject data) {
    super.mergeViewWithData(view, data);
    PicturePrimaryTextHolder holder = (PicturePrimaryTextHolder) getHolder(view);
    // holder.getPicture().setImageDrawable(null);
    Tag tag = (Tag) data;
    holder.getPrimaryText().setText(tag.getName());
    String url = FacebookUtil.getImageURLForId(tag.getId());
    loadImage(holder.getPicture(), url, AttrUtil.getResourceId(getContext(view), R.attr.squarePlaceHolderIcon), data);
}
Also used : PicturePrimaryTextHolder(com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder) Tag(com.abewy.android.apps.klyph.core.fql.Tag)

Aggregations

PicturePrimaryTextHolder (com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder)6 TextView (android.widget.TextView)3 ImageView (android.widget.ImageView)2 Friend (com.abewy.android.apps.klyph.core.fql.Friend)1 FriendList (com.abewy.android.apps.klyph.core.fql.FriendList)1 Tag (com.abewy.android.apps.klyph.core.fql.Tag)1