package com.juanocampo.flickr.flickrapptest.ui.adapters.delegate;

import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;


/**
 * Interface to create and bind {@link RecyclerView.ViewHolder}
 *
 * @author juanocampo
 */
public interface ViewDelegateAdapter<VH extends RecyclerView.ViewHolder, T extends ViewType> {

    VH onCreateViewHolder(ViewGroup parent);

    void onBindViewHolder(VH holder, T item);

}