use of com.abewy.android.apps.klyph.adapter.holder.MessageHolder in project Klyph by jonathangerbaud.
the class MessageAdapter method bindData.
@Override
public void bindData(View view, GraphObject data) {
MessageHolder holder = (MessageHolder) getHolder(view);
Message message = (Message) data;
holder.getMessageTextView().setText(EmojiUtil.getSpannableForText(holder.getMessageTextView().getContext(), message.getBody()));
holder.getDateTextView().setText(DateUtil.getShortDateTime(message.getCreated_time()));
//TextViewUtil.setElementClickable(getContext(view), holder.getAuthorName(), message.getAuthor_name(), message.getAuthor_id(), "user");
ImageLoader.display(holder.getAuthorPicture(), message.getAuthor_pic(), KlyphUtil.getPlaceHolder(holder.getAuthorPicture().getContext()));
}
use of com.abewy.android.apps.klyph.adapter.holder.MessageHolder in project Klyph by jonathangerbaud.
the class MessageAdapter method attachViewHolder.
@Override
protected void attachViewHolder(View view) {
ImageView authorPicture = (ImageView) view.findViewById(R.id.message_author_picture);
TextView messageTV = (TextView) view.findViewById(R.id.message_body);
TextView date = (TextView) view.findViewById(R.id.message_date);
setHolder(view, new MessageHolder(authorPicture, messageTV, date));
}
Aggregations