为了账号安全,请及时绑定邮箱和手机立即绑定

为何我的设置 android:completionThreshold="2",也可以检索数据源

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"


    android:orientation="vertical" >

    <AutoCompleteTextView
        android:completionThreshold="2"
        android:id="@+id/autoCompleteTextView1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="输入的关键字" >
    </AutoCompleteTextView>

</LinearLayout>



正在回答

2 回答

属性设置了一个阀值,规定用户打了多少字符之后才出现自动提示,默认值是2

0 回复 有任何疑惑可以回复我~

没有设置    android:completionThreshold="2",也可以检索数据源


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Android攻城狮的第一门课(入门篇)
  • 参与学习       312476    人
  • 解答问题       4931    个

想快速掌握Android应用开发基础,选择学习这门课程就对了。

进入课程

为何我的设置 android:completionThreshold="2",也可以检索数据源

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号