View.AutofillTypeList 字段

定义

注意

This constant will be removed in the future version. Use Android.Views.AutofillType enum directly instead of this field.

选择列表字段的自动填充类型,该字段由 int 表示列表中的元素索引填充(从开始 0)。

[Android.Runtime.Register("AUTOFILL_TYPE_LIST", ApiSince=26)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.AutofillType enum directly instead of this field.", true)]
public const Android.Views.AutofillType AutofillTypeList = 3;
[<Android.Runtime.Register("AUTOFILL_TYPE_LIST", ApiSince=26)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.AutofillType enum directly instead of this field.", true)>]
val mutable AutofillTypeList : Android.Views.AutofillType

字段值

Value = 3
属性

注解

选择列表字段的自动填充类型,该字段由 int 表示列表中的元素索引填充(从开始 0)。

AutofillValue可以获取AutofillValue#forList(int)自动填充 a View 的实例,并且传递给自动填充的值View可以通过提取AutofillValue#getListValue()

选择列表中的可用选项通常由 android.app.assist.AssistStructure.ViewNode#getAutofillOptions().

适用于 . 的 android.view.View.AUTOFILL_TYPE_LISTJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于