[android-components](../../index.md) / [mozilla.components.browser.engine.servo](../index.md) / [ServoEngine](index.md) / [createView](./create-view.md)

# createView

`fun createView(context: <ERROR CLASS>, attrs: <ERROR CLASS>?): `[`EngineView`](../../mozilla.components.concept.engine/-engine-view/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/engine-servo/src/main/java/mozilla/components/browser/engine/servo/ServoEngine.kt#L25)

Overrides [Engine.createView](../../mozilla.components.concept.engine/-engine/create-view.md)

Creates a new view for rendering web content.

### Parameters

`context` - an application context

`attrs` - optional set of attributes

**Return**
new newly created [EngineView](../../mozilla.components.concept.engine/-engine-view/index.md).

