use of com.abewy.android.apps.klyph.adapter.holder.PicturePrimarySecondaryTextHolder in project Klyph by jonathangerbaud.
the class NotificationAdapter method attachHolder.
@Override
protected void attachHolder(View view) {
ImageView userPicture = (ImageView) view.findViewById(R.id.picture);
TextView notificationTitle = (TextView) view.findViewById(R.id.primary_text);
TextView notificationTime = (TextView) view.findViewById(R.id.secondary_text);
View divider = (View) view.findViewById(R.id.divider);
setHolder(view, new PicturePrimarySecondaryTextHolder(userPicture, notificationTitle, notificationTime, divider));
}
use of com.abewy.android.apps.klyph.adapter.holder.PicturePrimarySecondaryTextHolder in project Klyph by jonathangerbaud.
the class PageAdapter method mergeViewWithData.
@Override
protected void mergeViewWithData(View view, GraphObject data) {
super.mergeViewWithData(view, data);
PicturePrimarySecondaryTextHolder holder = (PicturePrimarySecondaryTextHolder) getHolder(view);
//holder.getPicture().setImageDrawable(null);
Page page = (Page) data;
holder.getPrimaryText().setText(page.getName());
holder.getSecondaryText().setText(page.getType().toUpperCase());
if (placeHolder == -1)
placeHolder = AttrUtil.getResourceId(getContext(holder.getPicture()), R.attr.squarePlaceHolderIcon);
loadImage(holder.getPicture(), page.getPic(), placeHolder, data);
}
use of com.abewy.android.apps.klyph.adapter.holder.PicturePrimarySecondaryTextHolder in project Klyph by jonathangerbaud.
the class PageAdapter method attachHolder.
@Override
protected void attachHolder(View view) {
ImageView pagePicture = (ImageView) view.findViewById(R.id.picture);
TextView pageName = (TextView) view.findViewById(R.id.primary_text);
TextView pageCategory = (TextView) view.findViewById(R.id.secondary_text);
setHolder(view, new PicturePrimarySecondaryTextHolder(pagePicture, pageName, pageCategory));
}
use of com.abewy.android.apps.klyph.adapter.holder.PicturePrimarySecondaryTextHolder in project Klyph by jonathangerbaud.
the class FriendRequestAdapter method attachHolder.
@Override
protected void attachHolder(View view) {
ImageView userPicture = (ImageView) view.findViewById(R.id.picture);
TextView notificationTitle = (TextView) view.findViewById(R.id.primary_text);
TextView notificationTime = (TextView) view.findViewById(R.id.secondary_text);
setHolder(view, new PicturePrimarySecondaryTextHolder(userPicture, notificationTitle, notificationTime));
}
use of com.abewy.android.apps.klyph.adapter.holder.PicturePrimarySecondaryTextHolder in project Klyph by jonathangerbaud.
the class FriendRequestAdapter method mergeViewWithData.
@Override
protected void mergeViewWithData(View view, GraphObject data) {
super.mergeViewWithData(view, data);
PicturePrimarySecondaryTextHolder holder = (PicturePrimarySecondaryTextHolder) getHolder(view);
//holder.getPicture().setImageDrawable(null);
FriendRequest friendRequest = (FriendRequest) data;
holder.getPrimaryText().setText(friendRequest.getUid_from_name());
if (friendRequest.getMessage().length() > 0) {
holder.getSecondaryText().setText(DateUtil.timeAgoInWords(getContext(view), friendRequest.getMessage()));
holder.getSecondaryText().setVisibility(View.VISIBLE);
} else {
holder.getSecondaryText().setVisibility(View.GONE);
}
loadImage(holder.getPicture(), friendRequest.getUid_from_pic(), data);
}
Aggregations