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,但视图应重写它以正确支持自动填充框架。

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

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

适用于