ViewConfiguration.Get(Context) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳指定的 Context配置。
[Android.Runtime.Register("get", "(Landroid/content/Context;)Landroid/view/ViewConfiguration;", "")]
public static Android.Views.ViewConfiguration? Get(Android.Content.Context context);
[<Android.Runtime.Register("get", "(Landroid/content/Context;)Landroid/view/ViewConfiguration;", "")>]
static member Get : Android.Content.Context -> Android.Views.ViewConfiguration
參數
- context
- Context
Context視覺化會被優先用於初始化視圖配置。 理想狀況下應該是 ActivityContext , Context#createWindowContext(int, Bundle)但並非必須如此。
傳回
這是取得行動的結果。
- 屬性
備註
回傳指定視覺化 Context的配置。 配置取決於 的各種參數 Context,例如顯示器的尺寸或顯示器的密度。
Java 文件 android.view.ViewConfiguration.get(android.content.Context)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。