AutoCompleteTextView的一些属性

来源:互联网 发布:mac 睡眠时间设置 编辑:程序博客网 时间:2024/06/02 05:29

AutoCompleteTextView的一些属性(布局文件中调用)

● completionThreshold:它的值决定了你在AutoCompleteTextView至少输入几个字符,其值必须大于0,它才会具有自动提示的功能。另外默认最多提示二十条。

● dropDownAnchor:它的值是一个View的ID,指定后,AutoCompleteTextView会在这个View下弹出自动提示。

● dropDownSelector:应该是设置自动提示的背景色之类的

● dropDownWidth:设置自动提示列表的宽度

0 0
原创粉丝点击