use of com.abewy.android.apps.klyph.adapter.holder.FriendPickerHolder in project Klyph by jonathangerbaud.
the class FriendPickerAdapter method mergeViewWithData.
@Override
protected void mergeViewWithData(View view, GraphObject data) {
super.mergeViewWithData(view, data);
setData(view, data);
FriendPickerHolder holder = (FriendPickerHolder) getHolder(view);
//holder.getFriendPicture().setImageDrawable(null);
Friend friend = (Friend) data;
holder.getFriendName().setText(friend.getName());
//holder.getCheckbox().setSelected(user.isSelected());
((Checkable) view).setChecked(friend.isSelected());
if (placeHolder == -1)
placeHolder = AttrUtil.getResourceId(getContext(holder.getFriendPicture()), R.attr.squarePlaceHolderIcon);
loadImage(holder.getFriendPicture(), friend.getPic(), placeHolder, data);
}
use of com.abewy.android.apps.klyph.adapter.holder.FriendPickerHolder in project Klyph by jonathangerbaud.
the class FriendPickerAdapter method attachHolder.
@Override
protected void attachHolder(View view) {
ImageView friendPicture = (ImageView) view.findViewById(R.id.friend_profile_picture);
TextView friendName = (TextView) view.findViewById(R.id.friend_name);
CheckBox checkBox = (CheckBox) view.findViewById(android.R.id.checkbox);
setHolder(view, new FriendPickerHolder(friendPicture, friendName, checkBox));
}
Aggregations