installViewFactory

abstract fun installViewFactory()(source)

Installs AppCompat's android.view.LayoutInflater Factory so that it can replace the framework widgets with compatible tinted versions. This should be called before super.onCreate() as so:

protected void onCreate(Bundle savedInstanceState) {
    getDelegate().installViewFactory();
    getDelegate().onCreate(savedInstanceState);
    super.onCreate(savedInstanceState);

    // ...
}
If you are using your own Factory or Factory2 then you can omit this call, and instead call createView from your factory to return any compatible widgets.