use of com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder in project Klyph by jonathangerbaud.
the class TagAdapter method attachHolder.
@Override
protected void attachHolder(View view) {
ImageView friendPicture = (ImageView) view.findViewById(R.id.picture);
TextView friendName = (TextView) view.findViewById(R.id.primary_text);
setHolder(view, new PicturePrimaryTextHolder(friendPicture, friendName));
}
use of com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder in project Klyph by jonathangerbaud.
the class FriendListAdapter method mergeViewWithData.
@Override
protected void mergeViewWithData(View view, GraphObject data) {
super.mergeViewWithData(view, data);
PicturePrimaryTextHolder holder = (PicturePrimaryTextHolder) getHolder(view);
FriendList friendList = (FriendList) data;
holder.getPrimaryText().setText(friendList.getName());
}
use of com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder in project Klyph by jonathangerbaud.
the class FriendAdapter method attachHolder.
@Override
protected void attachHolder(View view) {
ImageView friendPicture = (ImageView) view.findViewById(R.id.picture);
TextView friendName = (TextView) view.findViewById(R.id.primary_text);
setHolder(view, new PicturePrimaryTextHolder(friendPicture, friendName));
}
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);
}
use of com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder in project Klyph by jonathangerbaud.
the class FriendListAdapter method attachHolder.
@Override
protected void attachHolder(View view) {
TextView friendListName = (TextView) view.findViewById(android.R.id.text1);
setHolder(view, new PicturePrimaryTextHolder(null, friendListName));
}
Aggregations