ViewGroup.addView 方法
在 ViewGroup
中新增檢視畫面。檢視畫面可以由檢視畫面衍生物件表示,也可以簡單地由 ViewId
表示。
簽名
addView(viewOrId: DocsView|ViewId): ViewGroup;
詳細資料
參數
傳回
ViewGroup
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-15 (世界標準時間)。
[null,null,["上次更新時間:2024-10-15 (世界標準時間)。"],[[["The `addView` method integrates a view, identified by a `DocsView` object or `ViewId`, into a `ViewGroup`."],["This method is a non-static, non-final, and public member of the `ViewGroup` class."],["`addView` accepts a single, mandatory parameter: `viewOrId`, representing the view to be added."],["Upon successful addition, `addView` returns the modified `ViewGroup` instance."]]],[]]