กลุ่มมุมมองของชั้นเรียน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ViewGroup
คือการจัดกลุ่มมุมมองด้วยภาพในแผงการนำทาง
ลายเซ็น
export class ViewGroup
รายละเอียด
ผู้ผลิต
เมธอด
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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`. |"]]