IAttributeSet.GetAttributeResourceValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetAttributeResourceValue(Int32, Int32) |
将“index”处的属性值作为资源标识符返回。 |
| GetAttributeResourceValue(String, String, Int32) |
将“attribute”的值作为资源标识符返回。 |
GetAttributeResourceValue(Int32, Int32)
将“index”处的属性值作为资源标识符返回。
[Android.Runtime.Register("getAttributeResourceValue", "(II)I", "GetGetAttributeResourceValue_IIHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeResourceValue(int index, int defaultValue);
[<Android.Runtime.Register("getAttributeResourceValue", "(II)I", "GetGetAttributeResourceValue_IIHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeResourceValue : int * int -> int
参数
- index
- Int32
所需属性的索引,0...count-1。
- defaultValue
- Int32
如果未找到该属性,则返回的内容。
返回
生成的值。
- 属性
注解
将“index”处的属性值作为资源标识符返回。
请注意,这不同于 #getAttributeNameResource 它返回此属性中包含的值作为资源标识符(即最初为窗体的值”
Java文档android.util.AttributeSet.getAttributeResourceValue(int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
GetAttributeResourceValue(String, String, Int32)
将“attribute”的值作为资源标识符返回。
[Android.Runtime.Register("getAttributeResourceValue", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetGetAttributeResourceValue_Ljava_lang_String_Ljava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeResourceValue(string? namespace, string? attribute, int defaultValue);
[<Android.Runtime.Register("getAttributeResourceValue", "(Ljava/lang/String;Ljava/lang/String;I)I", "GetGetAttributeResourceValue_Ljava_lang_String_Ljava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeResourceValue : string * string * int -> int
参数
- namespace
- String
要检索的属性的命名空间。
- attribute
- String
要检索的属性。
- defaultValue
- Int32
如果未找到该属性,则返回的内容。
返回
生成的值。
- 属性
注解
将“attribute”的值作为资源标识符返回。
请注意,这不同于 #getAttributeNameResource 它返回此属性中包含的值作为资源标识符(即最初为窗体的值”
Java文档android.util.AttributeSet.getAttributeResourceValue(java.lang.String, java.lang.String, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。