Code example for MenuInflater

0
    return LayoutInflater.from(realActivity);
  } 
 
  @Implementation 
  public MenuInflater getMenuInflater() {
    return new MenuInflater(realActivity);
  } 
 
  /** 
   * Checks to ensure that the{@code contentView} has been set 
   * 
   * @param id ID of the view to find 
   * @return the view 
   * @throws RuntimeException if the {@code contentView} has not been called first 
   */ 
  @Implementation 
  public View findViewById(int id) {
    return getWindow().findViewById(id);
  } 
 
  @Implementation