語言

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 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於