View.AutofillTypeDate 字段

定义

注意

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

包含日期的字段的自动填充类型,该字段由表示自标准基准时间(即 1970 年 1 月 1 日 00:00:00:00 GMT (的毫秒数)表示,请参阅 java.util.Date#getTime()

[Android.Runtime.Register("AUTOFILL_TYPE_DATE", 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 AutofillTypeDate = 4;
[<Android.Runtime.Register("AUTOFILL_TYPE_DATE", 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 AutofillTypeDate : Android.Views.AutofillType

字段值

Value = 4
属性

注解

包含日期的字段的自动填充类型,该字段由表示自标准基准时间(即 1970 年 1 月 1 日 00:00:00:00 GMT (的毫秒数)表示,请参阅 java.util.Date#getTime()

AutofillValue 自动填充 View 的实例可以通过 获取 AutofillValue#forDate(long),传递给自动填充 View 的值可以通过 获取 AutofillValue#getDateValue()

android.view.View.AUTOFILL_TYPE_DATEJava 文档。

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

适用于