Search in sources :

Example 1 with PhotoHolder

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);
}
Also used : PhotoHolder(com.abewy.android.apps.klyph.adapter.holder.PhotoHolder)

Example 2 with PhotoHolder

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);
}
Also used : ImageButton(android.widget.ImageButton) ImageButton(android.widget.ImageButton) Button(android.widget.Button) ViewGroup(android.view.ViewGroup) TextView(android.widget.TextView) ImageView(android.widget.ImageView) PhotoHolder(com.abewy.android.apps.klyph.adapter.holder.PhotoHolder)

Aggregations

PhotoHolder (com.abewy.android.apps.klyph.adapter.holder.PhotoHolder)2 ViewGroup (android.view.ViewGroup)1 Button (android.widget.Button)1 ImageButton (android.widget.ImageButton)1 ImageView (android.widget.ImageView)1 TextView (android.widget.TextView)1