@SuppressWarnings("unchecked")
  public static <T extends View> T findViewById(View containerView, int viewId) {
    View foundView = containerView.findViewById(viewId);
    return (T) foundView;
  }
This method returns the reference of the View with the given Id in the view passed as parameter

@param containerView The container View
@param viewId The id of the View we want to get a reference
@return The View with the given id and type
samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/util/UI.java