Constructor ViewGroup.(constructor)
Constructs a new instance of the ViewGroup
class
Signature
constructor(viewOrId: DocsView|ViewId);
Details
Parameters
Name |
Type |
Optional |
Description |
viewOrId |
DocsView|ViewId |
No |
The root item of the ViewGroup itself must be view. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-17 UTC.
[null,null,["Last updated 2024-09-17 UTC."],[[["Creates a new `ViewGroup` object, which is a container for other views."],["Requires a `DocsView` or `ViewId` as an argument, representing the root item of the group."],["The provided root item must be a view and cannot be optional."]]],[]]