Inflate the main layout used to render videos in the list view.

@param inflater LayoutInflater service to inflate.
@param parent ViewGroup used to inflate xml.
@return view inflated.
771368
@Override protected View inflate(LayoutInflater inflater, ViewGroup parent) {
    View inflatedView = inflater.inflate(R.layout.video_renderer, parent, false);
        /*
         * You don't have to use ButterKnife library to implement the mapping between your layout
         * and your widgets you can implement setUpView and hookListener methods declared in
         * Renderer<T> class.
         */
    ButterKnife.bind(this, inflatedView);
    return inflatedView;
  }
1329651
def init_layout(self):
        
        parent = self.parent()
        if parent is not None:
            self.adapter = parent.adapter
            self.adapter.addFragment(self.fragment)
662028
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_movie_poster, container, false);
    ButterKnife.inject(this, view);
    Picasso.with(getActivity())
        .load(videoPosterThumbnail)
        .placeholder(R.drawable.xmen_placeholder)
        .into(thumbnailImageView);
    return view;
  }
26727
public void fill(View view) {
        validateNotNullableView(view);

        try {
            if(view instanceof ViewGroup) {
                ViewGroup viewGroup = (ViewGroup) view;
                for(int i = 0; i < viewGroup.getChildCount(); i++) {
                    View child = viewGroup.getChildAt(i);
                    fill(child);
                }
            } else {
                if(mIds == null) {
                    fillView(view);
                } else if(mIds.contains(view.getId())) {
                    fillView(view);
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            mFaker = null;
        }
    }
674818
public View<?, ?> getRootParentView()
	{
		View<?, ?> currentView = this;
		while (currentView.hasParent())
		{
			currentView = currentView.getParent();
		}
		return currentView;
	}
986813
private void inflateListView(@NonNull final ViewGroup contentContainer) {
        View listView = contentContainer.findViewById(android.R.id.list);
        this.listView = listView instanceof RecyclerView ? (RecyclerView) listView : null;

        if (this.listView == null && !getDialog().isCustomViewUsed()) {
            LayoutInflater layoutInflater = LayoutInflater.from(getContext());
            View view = layoutInflater
                    .inflate(R.layout.material_dialog_list_view, contentContainer, false);
            this.listView = view.findViewById(android.R.id.list);
            getDialog().setView(view);
            this.inflatedCustomView = true;
        } else {
            this.inflatedCustomView = false;
        }

        View divider = contentContainer.findViewById(R.id.list_divider);
        this.listDivider = divider instanceof Divider ? (Divider) divider : null;
    }
210152
public static GenericDraweeHierarchy inflateHierarchy(
      Context context,
      @Nullable AttributeSet attrs) {
    return inflateBuilder(context, attrs).build();
  }
245890
@Override
    public View newView(Context context, Cursor cursor, ViewGroup parent) {
        View v = super.newView(context, cursor, parent);
        v.setTag(new ChildViewCache(v));
        return v;
    }
893775
@Override
    public View getView(int position, View convertView, ViewGroup parent) {
        Country country = getItem(position);

        if (convertView == null) {
            convertView = new ImageView(getContext());
        }

        ((ImageView) convertView).setImageResource(getFlagResource(country));

        return convertView;
    }
766968
@Override
    public VH getViewHolder(ViewGroup parent) {
        return getViewHolder(createView(parent.getContext(), parent));
    }
242086
public void inflateDebugMenu(MenuInflater inflater, Menu menu) {
		inflater.inflate(R.menu.debug, menu);
	}
898849
private void inflateLayout() {
        setContentView(isSplitScreen() ? R.layout.preference_activity_tablet :
                R.layout.preference_activity_phone);
        frameLayout = findViewById(R.id.frame_layout);
        navigationFragmentContainer = findViewById(R.id.navigation_fragment_container);
        cardView = findViewById(R.id.card_view);
        toolbar = findViewById(R.id.toolbar);
        toolbarLarge = findViewById(R.id.large_toolbar);
        breadCrumbToolbar = findViewById(R.id.bread_crumb_toolbar);
        buttonBar = findViewById(R.id.wizard_button_bar);
        nextButton = findViewById(R.id.next_button);
        nextButton.setOnClickListener(createNextButtonListener());
        backButton = findViewById(R.id.back_button);
        backButton.setOnClickListener(createBackButtonListener());
        finishButton = findViewById(R.id.finish_button);
        finishButton.setOnClickListener(createFinishButtonListener());
        buttonBarShadowView = findViewById(R.id.wizard_button_bar_shadow_view);
        toolbarShadowView = findViewById(R.id.toolbar_shadow_view);
        breadCrumbShadowView = findViewById(R.id.bread_crumb_shadow_view);
    }
90536
private void inflateTitleView() {
        titleContainer = rootView.findViewById(R.id.title_container);
        titleContainer.removeAllViews();

        if (customTitleView != null) {
            titleContainer.addView(customTitleView);
        } else if (customTitleViewId != -1) {
            LayoutInflater layoutInflater = LayoutInflater.from(getContext());
            View view = layoutInflater.inflate(customTitleViewId, titleContainer, false);
            titleContainer.addView(view);
        } else {
            LayoutInflater layoutInflater = LayoutInflater.from(getContext());
            View view = layoutInflater.inflate(R.layout.bottom_sheet_title, titleContainer, false);
            titleContainer.addView(view);
        }

        if (getStyle() == Style.LIST) {
            int padding = getContext().getResources()
                    .getDimensionPixelSize(R.dimen.bottom_sheet_list_item_horizontal_padding);
            titleContainer.setPadding(padding, 0, padding, 0);
        } else {
            int padding = getContext().getResources()
                    .getDimensionPixelSize(R.dimen.bottom_sheet_grid_item_horizontal_padding);
            titleContainer.setPadding(padding, 0, padding, 0);
        }

        View titleView = titleContainer.findViewById(android.R.id.title);
        titleTextView = titleView instanceof TextView ? (TextView) titleView : null;
    }
96691
@Override public final VH onCreateViewHolder(ViewGroup parent, int viewType) {
    VH viewHolder;
    if (isHeaderType(viewType)) {
      viewHolder = onCreateHeaderViewHolder(parent, viewType);
    } else if (isFooterType(viewType)) {
      viewHolder = onCreateFooterViewHolder(parent, viewType);
    } else {
      viewHolder = onCreateItemViewHolder(parent, viewType);
    }
    return viewHolder;
  }
1331628
public Parent getParent() {
		final ImageView imageView = new ImageView(getClass().getResource(getImagePath()).toExternalForm());
		final ProgressBar splashProgressBar = new ProgressBar();
		splashProgressBar.setPrefWidth(imageView.getImage().getWidth());

		final VBox vbox = new VBox();
		vbox.getChildren().addAll(imageView, splashProgressBar);

		return vbox;
	}
11408
@UiThread
    @NonNull
    @Override
    public HorizontalParentViewHolder onCreateParentViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view = mInflater.inflate(R.layout.list_item_parent_horizontal, parent, false);
        return new HorizontalParentViewHolder(view);
    }
1308159
private void initContentView(LayoutInflater inflater, View header, boolean fixedHeader, View footer,
                               boolean fixedFooter, BaseAdapter adapter, int[] padding, int[] margin) {
    View contentView = createView(inflater, header, fixedHeader, footer, fixedFooter, adapter);
    FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(
        ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT
    );
    params.setMargins(margin[0], margin[1], margin[2], margin[3]);
    contentView.setLayoutParams(params);
    getHolderView().setPadding(padding[0], padding[1], padding[2], padding[3]);
    contentContainer.addView(contentView);
  }