use of com.abewy.android.apps.klyph.adapter.holder.PhotoHolder in project Klyph by jonathangerbaud.
the class PhotoAdapter method mergeViewWithData.
@Override
protected void mergeViewWithData(View view, GraphObject data) {
super.mergeViewWithData(view, data);
final PhotoHolder holder = (PhotoHolder) getHolder(view);
setData(view, data);
setData(view, holder, (Photo) data);
}
use of com.abewy.android.apps.klyph.adapter.holder.PhotoHolder in project Klyph by jonathangerbaud.
the class PhotoAdapter method attachHolder.
@Override
protected void attachHolder(View view) {
ImageView authorProfileImage = (ImageView) view.findViewById(R.id.author_profile_image);
TextView story = (TextView) view.findViewById(R.id.story);
TextView postTime = (TextView) view.findViewById(R.id.post_time);
TextView message = (TextView) view.findViewById(R.id.message);
Button likeButton = (Button) view.findViewById(R.id.like_button);
Button commentButton = (Button) view.findViewById(R.id.comment_button);
ImageButton shareButton = (ImageButton) view.findViewById(R.id.share_button);
ViewGroup buttonBar = (ViewGroup) view.findViewById(R.id.button_bar);
PhotoHolder holder = new PhotoHolder(authorProfileImage, story, postTime, message, likeButton, commentButton, shareButton, buttonBar);
setHolder(view, holder);
}
Aggregations