View.ImportantForAutofill 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得判斷此視圖是否重要的模式。
public virtual Android.Views.ImportantForAutofill ImportantForAutofill { [Android.Runtime.Register("getImportantForAutofill", "()I", "GetGetImportantForAutofillHandler", ApiSince=26)] get; [Android.Runtime.Register("setImportantForAutofill", "(I)V", "GetSetImportantForAutofill_IHandler", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getImportantForAutofill", "()I", "GetGetImportantForAutofillHandler", ApiSince=26)>]
[<set: Android.Runtime.Register("setImportantForAutofill", "(I)V", "GetSetImportantForAutofill_IHandler", ApiSince=26)>]
member this.ImportantForAutofill : Android.Views.ImportantForAutofill with get, set
屬性值
#IMPORTANT_FOR_AUTOFILL_AUTO 預設值,或是傳遞給 #setImportantForAutofill(int)。
- 屬性
備註
財產取得者文件:
取得判斷此視圖是否重要的模式。
更多關於此模式的資訊請參見#setImportantForAutofill(int)#isImportantForAutofill()。
Java 文件 android.view.View.getImportantForAutofill()。
屬性設定文件:
設定判斷此視圖是否被視為自動填充重要性的模式。
平台會自動決定自動填充的重要性,但你可以用這個方法自訂行為。 例如:
<ol><li>當視圖內容對自動填充無關(例如「驗證碼」挑戰中使用的文字欄位)時,應該是 #IMPORTANT_FOR_AUTOFILL_NO。
<當>視圖及其子節點對自動填充無關(例如包含spreadhseet編輯器的活動根視圖)時,應該為 #IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS。
<當>檢視內容對自動填充有關聯但其子節點不相關(例如,信用卡的有效期限由自訂檢視表示,覆蓋正確的自動填充方法,且有兩個子節點代表月份和年份),則應該是 #IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS。
</ol>
<b>注意:</b> 設定模式 #IMPORTANT_FOR_AUTOFILL_NO 為或 #IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS 不保證視圖(及其子視圖)不會用於自動填充;例如,當使用者明確提出自動填入請求時,所有視圖都會包含在 ViewStructure,系統開始 android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE 時會利用其他因素及重要性來決定自動填入行為。 更多關於 View 在自動填充中的重要性的詳細說明 #isImportantForAutofill() 。
Java 文件 android.view.View.setImportantForAutofill(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。