ViewGroup 类
ViewGroup
是导航窗格中视图的可视化分组。
签名
export class ViewGroup
详细信息
构造函数
方法
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-08。
[null,null,["最后更新时间 (UTC):2024-11-08。"],[[["`ViewGroup` organizes views visually within the navigation pane for better structure."],["It can contain labels, individual views, or even nested `ViewGroup` objects for hierarchical organization."],["Developers can easily add elements using methods like `addLabel`, `addView`, and `addViewGroup`."]]],["`ViewGroup` is a class for visually grouping views in a navigation pane. It can be constructed with a view or an ID. Key actions include adding a label via `addLabel`, adding a view using `addView` (accepting either a view object or `ViewId`), and nesting another `ViewGroup` within it using `addViewGroup`. It cannot be inherited as it is a final class.\n"]]