Called to create this view

@param inflater      the layout inflater to inflate a layout from system
@param container     the container the layout is going to be placed in
@return
187661
@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, int highlightColor) {
        Context ctx = inflater.getContext();
        View view = inflater.inflate(R.layout.navdrawer_item, container, false);

        ImageView iconView = ButterKnife.findById(view, R.id.icon);
        TextView titleView = ButterKnife.findById(view, R.id.title);

        // Set the text
        FontLoader.apply(titleView, Face.ROBOTO_MEDIUM);
        titleView.setText(text);

        // Set the icon, if provided
        iconView.setVisibility(icon > 0 ? View.VISIBLE : View.GONE);
        if(icon > 0)
            iconView.setImageResource(icon);

        // configure its appearance according to whether or not it's selected
        titleView.setTextColor(selected ?
                highlightColor :
                UIUtils.getColorAttr(ctx, android.R.attr.textColorPrimary));

        iconView.setColorFilter(selected ?
                highlightColor :
                ctx.getResources().getColor(R.color.navdrawer_icon_tint));

        return view;
    }
854013
private void inflateContentContainer() {
        if (contentContainer == null) {
            contentContainer = new RelativeLayout(getContext());
            contentContainer.setId(R.id.content_container);
            LinearLayout.LayoutParams layoutParams =
                    new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 0);
            layoutParams.weight = 1;
            contentContainer.setLayoutParams(layoutParams);
        } else {
            contentContainer.removeAllViews();
        }
    }
253702
public void setContainer(Container container) {
		this.container = container;

		Map<String, TemplateEngine> map = new HashMap<String, TemplateEngine>();

		// loading TemplateEngine class from DI Container.
		Set<String> prefixes = container.getInstanceNames(TemplateEngine.class);
		for (String prefix : prefixes) {
			TemplateEngine engine = (TemplateEngine) container.getInstance(TemplateEngine.class, prefix);
			map.put(prefix, engine);
		}
		this.templateEngines = Collections.unmodifiableMap(map);
	}
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;
  }
1310023
public static android.view.View createView(Context context, Class<?> screenType) {
    Layout screen = screenType.getAnnotation(Layout.class);
    if (screen == null) {
      throw new IllegalArgumentException(
          String.format("@%s annotation not found on class %s", Layout.class.getSimpleName(),
              screenType.getName()));
    }

    int layout = screen.value();
    return inflateLayout(context, layout);
  }
147898
public Container or(Container x) {
    if (x instanceof ArrayContainer) {
      return or((ArrayContainer) x);
    } else if (x instanceof BitmapContainer) {
      return or((BitmapContainer) x);
    }
    return or((RunContainer) x);
  }
186994
private ProgressButton addProgressButton(LinearLayout container) {
    final LinearLayout.LayoutParams layoutParams =
        new LinearLayout.LayoutParams(0, LinearLayout.LayoutParams.WRAP_CONTENT, 1.0f);
    final ProgressButton progressButton = new ProgressButton(this);
    progressButton.setLayoutParams(layoutParams);
    container.addView(progressButton);
    return progressButton;
  }
1040603
@Override
    public Container create(ContainerDef definition, ServiceLoader loader) {
        Validate.notNull(definition, "Definition must be specified");

        try {
            // TODO: this whole Classloading thing is a HACK and does not work. Need to split out into multiple JVMs for multi container testing
            //         ClassLoader containerClassLoader;
            //         if(definition.getDependencies().size() > 0)
            //         {
            //            final MavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class).artifacts(
            //                  definition.getDependencies().toArray(new String[0]));
            //
            //            URL[] resolvedURLs = MapObject.convert(resolver.resolveAsFiles());
            //
            //            containerClassLoader = new FilteredURLClassLoader(resolvedURLs, "org.jboss.(arquillian|shrinkwrap)..*");
            //         }
            //         else
            //         {
            //            containerClassLoader = LocalContainerRegistry.class.getClassLoader();
            //         }
            //
            return addContainer(
                //before a Container is added to a collection of containers, inject into its injection point
                injector.inject(new ContainerImpl(
                    definition.getContainerName(),
                    loader.onlyOne(DeployableContainer.class),
                    definition)));
        } catch (Exception e) {
            throw new ContainerCreationException("Could not create Container " + definition.getContainerName(), e);
        }
    }
514397
synchronized void add(final Container container) {
    final String containerId = container.getId().toString();
    if (this.hasContainer(containerId)) {
      throw new RuntimeException("Trying to add a Container that is already known: " + containerId);
    }
    this.containers.put(containerId, container);
  }
984293
@Override
	public CPDisplayLayout create(long CPDisplayLayoutId) {
		CPDisplayLayout cpDisplayLayout = new CPDisplayLayoutImpl();

		cpDisplayLayout.setNew(true);
		cpDisplayLayout.setPrimaryKey(CPDisplayLayoutId);

		String uuid = PortalUUIDUtil.generate();

		cpDisplayLayout.setUuid(uuid);

		cpDisplayLayout.setCompanyId(companyProvider.getCompanyId());

		return cpDisplayLayout;
	}
1009608
public static UIContainer panel()
	{
		UIContainer container = new UIContainer();
		container.setName("Panel");
		container.setBackground(GuiShape.builder(container).icon(GuiIcon.PANEL).border(3).build());
		container.setPadding(Padding.of(3));
		return container;
	}
220887
@NonNull
  public static CreateMaterializedViewStart createMaterializedView(
      @Nullable String keyspace, @NonNull String viewName) {
    return createMaterializedView(
        keyspace == null ? null : CqlIdentifier.fromCql(keyspace), CqlIdentifier.fromCql(viewName));
  }
1360143
private void inflateWidgetLayout(Context context, int layoutId) {
        inflate(context, layoutId, this);

        floatingLabel = (TextView) findViewById(R.id.flw_floating_label);
        if (floatingLabel == null) {
            throw new RuntimeException("Your layout must have a TextView whose ID is @id/flw_floating_label");
        }

        View iw = findViewById(R.id.flw_input_widget);
        if (iw == null) {
            throw new RuntimeException("Your layout must have an input widget whose ID is @id/flw_input_widget");
        }
        try {
            inputWidget = (InputWidgetT) iw;
        } catch (ClassCastException e) {
            throw new RuntimeException("The input widget is not of the expected type");
        }
    }
1297676
public static ApplicationFeatureViewModel newViewModel(
            final ApplicationFeatureId featureId,
            final ApplicationFeatureRepositoryDefault applicationFeatureRepository,
            final DomainObjectContainer container) {
        final Class<? extends ApplicationFeatureViewModel> cls = viewModelClassFor(featureId, applicationFeatureRepository);
        if(cls == null) {
            // TODO: not sure why, yet...
            return null;
        }
        return container.newViewModelInstance(cls, featureId.asEncodedString());
    }
857290
public static View create(String name, String map) {
        return new DefaultView(name, map, null);
    }
442000
private final View getRecentContainer(View[] views) {
		View container = null;
		long drawingTime = 0;
		View view;

		for(int i = 0; i < views.length; i++){
			view = views[i];
			if (view != null && view.isShown() && view.hasWindowFocus() && view.getDrawingTime() > drawingTime) {
				container = view;
				drawingTime = view.getDrawingTime();
			}
		}
		return container;
	}
413704
@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_dialog_demo, container, false);

        ListView listView = (ListView) v.findViewById(R.id.dialog_content);
        listView.setAdapter(new ArrayAdapter<>(
                getActivity(),
                android.R.layout.simple_list_item_1,
                android.R.id.text1,
                new String[]{
                        "Enable History",
                        "Clear History",
                        "Search History",
                        "Select Currency",
                        "About"
                }
        ));
        return v;
    }