LayoutInflater.CloneInContext(Context) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立現有 LayoutInflater 物件的複製品,並將該物件指向與原始不同的 Context。
[Android.Runtime.Register("cloneInContext", "(Landroid/content/Context;)Landroid/view/LayoutInflater;", "GetCloneInContext_Landroid_content_Context_Handler")]
public abstract Android.Views.LayoutInflater? CloneInContext(Android.Content.Context? newContext);
[<Android.Runtime.Register("cloneInContext", "(Landroid/content/Context;)Landroid/view/LayoutInflater;", "GetCloneInContext_Landroid_content_Context_Handler")>]
abstract member CloneInContext : Android.Content.Context -> Android.Views.LayoutInflater
參數
- newContext
- Context
新的 Context 來與新的 LayoutInflater 關聯。 如果需要的話,也可以和原始上下文一樣。
傳回
回傳一個全新的 LayoutInflater 物件,與給定的 Context 相關聯。
- 屬性
備註
建立現有 LayoutInflater 物件的複製品,並將該物件指向與原始不同的 Context。 這會被用 ContextThemeWrapper 來建立一個新的 LayoutInflater ,配合新的 Context 主題。
的 android.view.LayoutInflater.cloneInContext(android.content.Context)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。