Constructor ViewGroup.(سازنده)
یک نمونه جدید از کلاس ViewGroup
می سازد
امضا
constructor(viewOrId: DocsView|ViewId);
جزئیات
پارامترها
نام | تایپ کنید | اختیاری | توضیحات |
---|
viewOrId | DocsView | ViewId | خیر | آیتم ریشه خود ViewGroup باید view باشد. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-11 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-11 بهوقت ساعت هماهنگ جهانی."],[[["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."]]],["The `ViewGroup` constructor requires a `viewOrId` parameter, which can be either a `DocsView` or a `ViewId`. This parameter is mandatory and represents the root item of the `ViewGroup`. The provided root item itself must be a view. The constructor is not protected.\n"]]