Skip to content

Commit

Permalink
QA feedback
Browse files Browse the repository at this point in the history
- Make recycler view example reset animation by click
  • Loading branch information
bret-fears committed Mar 24, 2017
1 parent 9205dec commit 1cd1507
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,21 @@ private class RecyclerAdapter extends RecyclerView.Adapter<RecyclerAdapter.ViewH

List<RelativeLayout> 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();
}
}
}

Expand Down

0 comments on commit 1cd1507

Please sign in to comment.