# Constructor ViewGroup.(constructor)

Constructs a new instance of the `ViewGroup` class

## Signature

    constructor(viewOrId: DocsView|ViewId);

## Details

| Protected | No |
|---|---|

## Parameters

| Name | Type | Optional | Description |
|---|---|---|---|
| `viewOrId` | `https://developers.google.com/workspace/drive/picker/reference/picker.docsview.md|https://developers.google.com/workspace/drive/picker/reference/picker.viewid` | No | The root item of the ViewGroup itself must be view. |