语言

View.AutofillType 属性

定义

描述此视图的自动填充类型,因此可以在 android.service.autofill.AutofillService 自动填充视图时创建适当的 AutofillValue 类型。

public virtual Android.Views.AutofillType AutofillType { [Android.Runtime.Register("getAutofillType", "()I", "GetGetAutofillTypeHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getAutofillType", "()I", "GetGetAutofillTypeHandler", ApiSince=26)>]
member this.AutofillType : Android.Views.AutofillType

属性值

#AUTOFILL_TYPE_NONE、#AUTOFILL_TYPE_TEXT、#AUTOFILL_TYPE_LIST、#AUTOFILL_TYPE_DATE或#AUTOFILL_TYPE_TOGGLE。

特性

注解

描述此视图的自动填充类型,因此可以在 android.service.autofill.AutofillService 自动填充视图时创建适当的 AutofillValue 类型。

默认情况下返回 #AUTOFILL_TYPE_NONE,但视图应重写它以正确支持自动填充框架。

Java文档android.view.View.getAutofillType()。

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

适用于