code: public void setOnItemClickedListener(RecyclerView.OnItemClickedListener<Type> listener) {
          this.onItemClickedListener = listener;
          getAdapter().setOnItemClickedListener(listener);
      }
docs: /*
  private int measureContentWidth(android.support.v7.widget.RecyclerView.Adapter adapter) {
  Menus don't tend to be long, so this is more sane than it looks.
  int width = 0;
  View itemView = null;
  int itemType = 0;
  final int widthMeasureSpec =
  View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
  final int heightMeasureSpec =
  View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
  final int count = adapter.getItemCount();
  for (int i = 0; i < count; i++) {
  final int positionType = adapter.getItemViewType(i);
  if (positionType != itemType) {
  itemType = positionType;
  itemView = null;
  }
  if (mMeasureParent == null) {
  mMeasureParent = new FrameLayout(getContentView().getContext());
  }
  itemView = adapter.getView(i, itemView, mMeasureParent);
  itemView.measure(widthMeasureSpec, heightMeasureSpec);
  width = Math.max(width, itemView.getMeasuredWidth());
  }
  return width;
  }