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) {
        if (contentView != null) {
            return contentView.findViewById(id);
        } else { 
            System.out.println("WARNING: you probably should have called setContentView() first");