PreferenceGroup 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| PreferenceGroup(Context, IAttributeSet) |
从 XML 属性初始化首选项组。 |
| PreferenceGroup(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
| PreferenceGroup(Context, IAttributeSet, Int32) |
从 XML 属性和主题样式属性初始化首选项组。 |
| PreferenceGroup(Context, IAttributeSet, Int32, Int32) |
从 XML 属性和默认样式初始化首选项组。 |
PreferenceGroup(Context, IAttributeSet)
从 XML 属性初始化首选项组。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public PreferenceGroup(Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Preferences.PreferenceGroup : Android.Content.Context * Android.Util.IAttributeSet -> Android.Preferences.PreferenceGroup
参数
- context
- Context
提供主题、资源和首选项存储的上下文。
- attrs
- IAttributeSet
首选项的 XML 属性,或者 null 未提供 XML 属性时。
- 特性
注解
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
PreferenceGroup(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected PreferenceGroup(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Preferences.PreferenceGroup : nativeint * Android.Runtime.JniHandleOwnership -> Android.Preferences.PreferenceGroup
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
PreferenceGroup(Context, IAttributeSet, Int32)
从 XML 属性和主题样式属性初始化首选项组。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public PreferenceGroup(Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")>]
new Android.Preferences.PreferenceGroup : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Preferences.PreferenceGroup
参数
- context
- Context
提供主题、资源和首选项存储的上下文。
- attrs
- IAttributeSet
首选项的 XML 属性,或者 null 未提供 XML 属性时。
- defStyleAttr
- Int32
引用具有默认值的样式的主题属性,或 0 表示不使用默认样式属性。
- 特性
注解
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
PreferenceGroup(Context, IAttributeSet, Int32, Int32)
从 XML 属性和默认样式初始化首选项组。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public PreferenceGroup(Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr, int defStyleRes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")>]
new Android.Preferences.PreferenceGroup : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Preferences.PreferenceGroup
参数
- context
- Context
提供主题、资源和首选项存储的上下文。
- attrs
- IAttributeSet
首选项的 XML 属性,或者 null 未提供 XML 属性时。
- defStyleAttr
- Int32
引用具有默认值的样式的主题属性,或 0 表示不使用默认样式属性。
- defStyleRes
- Int32
一个样式资源,其默认值为 0 或 defStyleAttr 主题未定义它;0 表示不使用回退样式。
- 特性
注解
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。