diff --git a/app/src/main/java/com/willowtreeapps/spurceexampleapp/fragments/RecyclerFragment.java b/app/src/main/java/com/willowtreeapps/spurceexampleapp/fragments/RecyclerFragment.java index d32ab30..044dcc3 100644 --- a/app/src/main/java/com/willowtreeapps/spurceexampleapp/fragments/RecyclerFragment.java +++ b/app/src/main/java/com/willowtreeapps/spurceexampleapp/fragments/RecyclerFragment.java @@ -97,13 +97,21 @@ private class RecyclerAdapter extends RecyclerView.Adapter placeholderList; - class ViewHolder extends RecyclerView.ViewHolder { + class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { RelativeLayout placeholderView; ViewHolder(View itemView) { super(itemView); placeholderView = (RelativeLayout) itemView.findViewById(R.id.placeholder_view); + placeholderView.setOnClickListener(this); + } + + @Override + public void onClick(View v) { + if (spruceAnimator != null) { + spruceAnimator.start(); + } } }