语言

ViewConfiguration.Get(Context) 方法

定义

返回指定 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 来初始化视图配置。 理想情况下,它应该是一个 Activity 或其他 Context 创建对象 Context#createWindowContext(int, Bundle),但这不是必需的。

返回

获取操作的结果。

特性

注解

返回指定视觉对象的 Context配置。 配置取决于各种参数 Context,例如显示尺寸或显示器密度。

Java文档android.view.ViewConfiguration.get(android.content.Context)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于