您的位置:首页 > 移动开发 > Android开发

Android ApiDemos示例解析(103):Views->Auto Complete->5. Contacts with Hint

2012-08-03 14:20 375 查看
上例使用Contacts中联系人作为AutoCompleteTextView 的提示内容时,使用了另外一个文本框来提示用户可以使用 * 作为通配符来匹配所有联系人:



本例介绍了AutoCompleteTextView
的 completionHint 属性用法,提供设置completionHint 属性,提示信息可以直接显示在提示下拉框中:

<AutoCompleteTextView android:id=”@+id/edit”

android:completionThreshold=”1″

android:completionHint=”@string/autocomplete_5_hint”

android:layout_width=”match_parent”

android:layout_height=”wrap_content”/>



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐