ViewGroup 類別
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
ViewGroup
是導覽窗格中的視覺化分組。
簽名
export class ViewGroup
詳細資料
建構函式
方法
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],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`. |"]]