// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Adapters/CollectionListAdapter.java
// public class CollectionListAdapter extends RecyclerView.Adapter<CollectionListAdapter
// 		.CollectionsViewHolder> implements View.OnClickListener {
// 
// 	private final static int ANIM_LIST_ENTER_DURATION = 700;
// 	private static final int ANIMATED_ITEMS_COUNT = 5;
// 
// 	private Context mContext;
// 	private List<Collection> mCollections;
// 	private OnCollectionClickListener mOnCollectionClickListener;
// 	private int lastAnimatedPosition = -1;
// 
// 	public CollectionListAdapter (Context context, Collections collections) {
// 		this.mContext = context;
// 		this.mCollections = collections.getCollections ();
// 	}
// 
// 	@Override
// 	public CollectionsViewHolder onCreateViewHolder (ViewGroup parent, int viewType) {
// 		View itemView = LayoutInflater.from (parent.getContext ()).inflate (R
// 				.layout.item_collection, parent, false);
// 		CollectionsViewHolder holder = new CollectionsViewHolder (itemView);
// 		holder.card.setOnClickListener (this);
// 		return holder;
// 	}
// 
// 	@Override
// 	public void onBindViewHolder (CollectionsViewHolder holder, int position) {
// 		runEnterAnimation (holder.itemView, position);
// 		holder.card.setTag (position);
// 		holder.name.setText (mCollections.get (position).getName ());
// 		holder.title.setText (mCollections.get (position).getTitle ());
// 		String backgroundImageUrl = mCollections.get (position)
// 				.getBackgroundImageUrl ();
// 		if (!backgroundImageUrl.equals ("")) {
// 			Picasso.with (mContext)
// 					.load (backgroundImageUrl)
// 					.fit ()
// 					.centerCrop ()
// 					.into (holder.image);
// 		}
// 	}
// 
// 	@Override
// 	public int getItemCount () {
// 		return mCollections.size ();
// 	}
// 
// 	private void runEnterAnimation (View view, int position) {
// 		if (position >= ANIMATED_ITEMS_COUNT - 1) {
// 			return;
// 		}
// 		if (position > lastAnimatedPosition) {
// 			lastAnimatedPosition = position;
// 			view.setTranslationY (ViewUtils.getScreenHeight (mContext));
// 			view.animate ()
// 					.translationY (0)
// 					.setInterpolator (new DecelerateInterpolator (3.f))
// 					.setDuration (ANIM_LIST_ENTER_DURATION)
// 					.start ();
// 		}
// 	}
// 
// 	@Override
// 	public void onClick (View v) {
// 		mOnCollectionClickListener.onCollectionClick (v, (Integer) v.getTag ());
// 	}
// 
// 	public void setOnCollectionClickListener (OnCollectionClickListener
// 			                                          onCollectionClickListener) {
// 		this.mOnCollectionClickListener = onCollectionClickListener;
// 	}
// 
// 	static class CollectionsViewHolder extends RecyclerView.ViewHolder {
// 
// 		@BindView (R2.id.card_collection)
// 		CardView card;
// 		@BindView (R2.id.card_collection_image)
// 		ImageView image;
// 		@BindView (R2.id.card_collection_name)
// 		TextView name;
// 		@BindView (R2.id.card_collection_title)
// 		TextView title;
// 
// 		CollectionsViewHolder (View itemView) {
// 			super (itemView);
// 			ButterKnife.bind (this, itemView);
// 		}
// 	}
// 
// 	public interface OnCollectionClickListener {
// 		void onCollectionClick (View view, int position);
// 	}
// }


import android.content.Context;
import com.jaspervanriet.huntingthatproduct.Views.Adapters.CollectionListAdapter;
/*
 * Copyright (C) 2015 Jasper van Riet
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.jaspervanriet.huntingthatproduct.Views;



public interface CollectionView {

	void initializeRecyclerView ();

// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/Adapters/CollectionListAdapter.java
// public class CollectionListAdapter extends RecyclerView.Adapter<CollectionListAdapter
// 		.CollectionsViewHolder> implements View.OnClickListener {
// 
// 	private final static int ANIM_LIST_ENTER_DURATION = 700;
// 	private static final int ANIMATED_ITEMS_COUNT = 5;
// 
// 	private Context mContext;
// 	private List<Collection> mCollections;
// 	private OnCollectionClickListener mOnCollectionClickListener;
// 	private int lastAnimatedPosition = -1;
// 
// 	public CollectionListAdapter (Context context, Collections collections) {
// 		this.mContext = context;
// 		this.mCollections = collections.getCollections ();
// 	}
// 
// 	@Override
// 	public CollectionsViewHolder onCreateViewHolder (ViewGroup parent, int viewType) {
// 		View itemView = LayoutInflater.from (parent.getContext ()).inflate (R
// 				.layout.item_collection, parent, false);
// 		CollectionsViewHolder holder = new CollectionsViewHolder (itemView);
// 		holder.card.setOnClickListener (this);
// 		return holder;
// 	}
// 
// 	@Override
// 	public void onBindViewHolder (CollectionsViewHolder holder, int position) {
// 		runEnterAnimation (holder.itemView, position);
// 		holder.card.setTag (position);
// 		holder.name.setText (mCollections.get (position).getName ());
// 		holder.title.setText (mCollections.get (position).getTitle ());
// 		String backgroundImageUrl = mCollections.get (position)
// 				.getBackgroundImageUrl ();
// 		if (!backgroundImageUrl.equals ("")) {
// 			Picasso.with (mContext)
// 					.load (backgroundImageUrl)
// 					.fit ()
// 					.centerCrop ()
// 					.into (holder.image);
// 		}
// 	}
// 
// 	@Override
// 	public int getItemCount () {
// 		return mCollections.size ();
// 	}
// 
// 	private void runEnterAnimation (View view, int position) {
// 		if (position >= ANIMATED_ITEMS_COUNT - 1) {
// 			return;
// 		}
// 		if (position > lastAnimatedPosition) {
// 			lastAnimatedPosition = position;
// 			view.setTranslationY (ViewUtils.getScreenHeight (mContext));
// 			view.animate ()
// 					.translationY (0)
// 					.setInterpolator (new DecelerateInterpolator (3.f))
// 					.setDuration (ANIM_LIST_ENTER_DURATION)
// 					.start ();
// 		}
// 	}
// 
// 	@Override
// 	public void onClick (View v) {
// 		mOnCollectionClickListener.onCollectionClick (v, (Integer) v.getTag ());
// 	}
// 
// 	public void setOnCollectionClickListener (OnCollectionClickListener
// 			                                          onCollectionClickListener) {
// 		this.mOnCollectionClickListener = onCollectionClickListener;
// 	}
// 
// 	static class CollectionsViewHolder extends RecyclerView.ViewHolder {
// 
// 		@BindView (R2.id.card_collection)
// 		CardView card;
// 		@BindView (R2.id.card_collection_image)
// 		ImageView image;
// 		@BindView (R2.id.card_collection_name)
// 		TextView name;
// 		@BindView (R2.id.card_collection_title)
// 		TextView title;
// 
// 		CollectionsViewHolder (View itemView) {
// 			super (itemView);
// 			ButterKnife.bind (this, itemView);
// 		}
// 	}
// 
// 	public interface OnCollectionClickListener {
// 		void onCollectionClick (View view, int position);
// 	}
// }


// Path: app/src/main/java/com/jaspervanriet/huntingthatproduct/Views/CollectionView.java
import android.content.Context;
import com.jaspervanriet.huntingthatproduct.Views.Adapters.CollectionListAdapter;

/*
 * Copyright (C) 2015 Jasper van Riet
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.jaspervanriet.huntingthatproduct.Views;



public interface CollectionView {

	void initializeRecyclerView ();

	void setAdapterForRecyclerView (CollectionListAdapter adapter);