语言

AutoCompleteTextView.DropDownAnchor 属性

定义

返回自动完成下拉列表定位到的视图的 ID。 - 或 - 设置自动完成下拉列表应定位到的视图。

public virtual int DropDownAnchor { [Android.Runtime.Register("getDropDownAnchor", "()I", "GetGetDropDownAnchorHandler")] get; [Android.Runtime.Register("setDropDownAnchor", "(I)V", "GetSetDropDownAnchor_IHandler")] set; }
[<get: Android.Runtime.Register("getDropDownAnchor", "()I", "GetGetDropDownAnchorHandler")>]
[<set: Android.Runtime.Register("setDropDownAnchor", "(I)V", "GetSetDropDownAnchor_IHandler")>]
member this.DropDownAnchor : int with get, set

属性值

视图的 ID,如果未指定,则 View#NO_ID 为

特性

注解

属性 getter 文档:

返回自动完成下拉列表定位到的视图的 ID。

Java文档android.widget.AutoCompleteTextView.getDropDownAnchor()。

属性 setter 文档:

设置自动完成下拉列表应定位到的视图。 在下次需要时,才加载与此 ID 对应的视图,以避免加载尚未实例化的视图。

Java文档android.widget.AutoCompleteTextView.setDropDownAnchor(int)。

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

适用于