קבוצת צפייה בכיתה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ViewGroup
הוא קיבוץ חזותי של תצוגות בחלונית הניווט.
חתימה
export class ViewGroup
פרטים
יצרנים
שיטות
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# Class ViewGroup\n\nA `ViewGroup` is a visual grouping of views in the navigation pane.\n\nSignature\n---------\n\n export class ViewGroup\n\nDetails\n-------\n\n| Final | No |\n|-------|----|\n\nConstructors\n------------\n\n| Name | Description |\n|---------------------------------------------------------------|----------------------------------------------------|\n| [`(constructor)(viewOrId)`](./picker.viewgroup._constructor_) | Constructs a new instance of the `ViewGroup` class |\n\nMethods\n-------\n\n| Name | Description |\n|--------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n| [`addLabel(label)`](./picker.viewgroup.addlabel) | Add a label to this `ViewGroup`. |\n| [`addView(viewOrId)`](./picker.viewgroup.addview) | Add a view to the `ViewGroup`. The view can be represented by a view-derived object, or simply by `ViewId`. |\n| [`addViewGroup(viewGroup)`](./picker.viewgroup.addviewgroup) | Nest a `ViewGroup` within the current `ViewGroup`. |"]]