腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(3636)
视频
沙龙
1
回答
OnItemClickListener
不与
AutoCompleteTextView
一起
使用
、
、
、
我
使用
了带有customLayout和适配器的
autoCompleteTextView
,但问题是当我们单击建议中的项目时,项目值既不会在
autoCompleteTextView
中填写,也不会触发
OnItemClickListener
代码
使用
在
autoCompleteTextView
中输入的文本过滤建议,但是onClick事件没有发生任何事情。MainActivity.java TeamsSuggestionAdapter TeamsAdapter = new TeamsSuggestio
浏览 29
提问于2019-09-01
得票数 0
回答已采纳
4
回答
从onItemClick确定
AutoCompleteTextView
、
是否可以从回调onItemClick的参数中确定源
AutoCompleteTextView
?我有以下回调函数,如果我点击
AutoCompleteTextView
的selection-popup-window中的一项,就会正确触发该回调函数: long id) {我知道,我可以点击,但我想要确定哪个
AutoCompleteTextView
单独根据回调函数的参数启动了点击
浏览 2
提问于2015-09-03
得票数 3
1
回答
在动态生成的setSelection上
使用
AutoCompleteTextView
设置光标位置
我正在处理一个
使用
TableLayout的项目,用户可以向表布局中添加一个新行。每个新行都作为新视图进行膨胀,然后将视图添加到表布局中。行中的一个控件是
AutoCompleteTextView
。这对于布局中的一个
AutoCompleteTextView
来说很好,但是我不知道如何在动态生成它的时候完成它。我正在从充气的布局中找到
AutoCompleteTextView
,并在item单击监听器上创建一个集合,并在OnItemClick函数中
使用
view参数来确保我
使用
的是触发事件处理程序的正
浏览 4
提问于2018-09-11
得票数 2
回答已采纳
4
回答
如何获取在
AutoCompleteTextView
中选定的文本的索引
、
AutoCompleteTextView
mActv = (
AutoCompleteTextView
) findViewbyId(R.id.m_actv); ArrayAdapter<String> AutoCompleteAdapter
浏览 5
提问于2012-11-20
得票数 20
1
回答
在
AutoCompleteTextView
的CustomAdapter中访问选定项的值
、
、
、
我试图通过从服务器上以列表的形式获取国家列表来填充
autocompletetextview
。我已经能够用
autocompletetextview
填充customAdapter。deletedAt;private String updatedAt; 我
使用
getActivity(), R.layout.list_view_row, country); _actvCountry.setAdapter
浏览 2
提问于2017-06-15
得票数 0
回答已采纳
5
回答
用户从下拉列表中选择项目后,禁用Android
AutoCompleteTextView
、
、
、
我正在
使用
带有CursorAdapter的安卓
AutoCompleteTextView
向应用程序添加自动补全功能。在视图的
onItemClickListener
()中(即,当用户触摸其中一个自动完成的下拉项时),我检索文本并将其放入EditText中,以便用户在需要时可以修改它。如果用户
使用
键盘输入新文本,我只想显示下拉菜单。有没有办法做到这一点?
浏览 0
提问于2011-11-08
得票数 20
回答已采纳
2
回答
如何在用户从
AutoCompleteTextView
中选择“某物”后隐藏键盘?
、
、
、
我有一个
AutoCompleteTextView
,当用户输入的时候,他得到了键盘。之后,用户从
AutoCompleteTextView
中选择所需的,但键盘是停留的,而不是隐藏的。这是我的Layout.xml代码: android:id="@+id/
autocompleteTextView
"
浏览 12
提问于2018-02-05
得票数 0
回答已采纳
3
回答
AutoCompleteTextView
检测用户是否选择了建议
、
我只希望用户能够点击一个按钮,如果他们已经按下了我的
autocompleteTextview
的建议。
autoCompleteTextView
; inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLA
浏览 0
提问于2011-11-15
得票数 3
回答已采纳
1
回答
MultiAutoCompleteTextView对一项的限制
、
我
使用
MultiAutoCompleteTextView从一个名称列表中提出建议,以便用户每次输入一个有效的名称。
浏览 3
提问于2012-01-03
得票数 1
3
回答
自动完成和onitemclick
、
、
、
我已经实现了
onitemclicklistener
。我有3个自动补全的。我想要获取用于单击
autocompletetextview
的id (在xml文件中
使用
的id)。我可以通过实现onitemselectedlistener和
使用
spinner来解决这个问题。但是我怎么解决这个问题呢?实现
onitemclicklistener
和
autocompletetextview
而不是spinner。请帮帮我。> parent, View v, int position,long id) {
浏览 3
提问于2014-07-03
得票数 3
2
回答
android:带有自定义适配器的
AutoCompleteTextView
、
、
、
我编写了一个扩展BaseAdapter的自定义适配器类,实现了可与
AutoCompleteTextView
一起
使用
的过滤器。过滤和选择工作正常。唯一的问题是,如果单击列表中的项,
AutoCompleteTextView
似乎会自动调用适配器getItem(int position)方法,并将其文本设置为getItem(position).toString我不想要这种行为,因为我在基本适配器中
使用
自定义对象,这会导致像"ClassName [id=xx, variable1=var1]"这
浏览 7
提问于2013-10-07
得票数 2
回答已采纳
1
回答
如何在Java中捕获材料下拉菜单选择的值?
、
、
、
、
我正在
使用
材料来设计一个具有下拉列表的表单在android studio中
使用
Java。android:layout_marginEnd="16dp" <
AutoCompleteTextView
((
AutoCompleteTextView
)cpdTypeLayout.getEditText()).setOnItemSelectedListener(new Adap
浏览 13
提问于2020-07-23
得票数 2
回答已采纳
9
回答
如何从
AutoCompleteTextView
获取文本?
、
我的应用程序中有一个可以正常工作的
AutoCompleteTextView
。我已经成功创建了一个onClickItemListener。问题是如何抓取用户选择的文本。ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.listitem, words);
浏览 0
提问于2011-01-28
得票数 37
回答已采纳
3
回答
自动完成working不工作
、
、
AutoCompleteTextView
inputEmail;inputEmail.setOnClickListener
浏览 0
提问于2013-06-05
得票数 34
回答已采纳
1
回答
通过加载Google在
AutoCompleteTextView
中获取项目上的地名?
、
、
我
使用
GoogleApiClient和Places.GEO_DATA_API api在
AutoCompleteTextView
中搜索时获得位置列表。地方越来越好,我只需要打印在
AutoCompleteTextView
中选择的位置。我
使用
了
OnItemClickListener
,它会抛出一些错误。你能帮我打印一下从
AutoCompleteTextView
中挑选出来的地方吗?有什么简单的方法来打印选定的地名吗?return null; 当我试图打印place时发生了错误
浏览 1
提问于2018-01-11
得票数 2
回答已采纳
2
回答
安卓:让
AutoCompleteTextView
下拉换行到2行或更多
、
、
我正在编写一个
使用
AutoCompleteTextView
的安卓应用程序,就像API示例一样。问题是我的文本太长了,当下拉框出现时需要换行。如果与微调器
一起
使用
,但
不与
AutoCompleteTextView
一起
使用
,则list_item.xml布局换行为2行。savedInstanceState) { setContentView(R.layout
浏览 1
提问于2010-02-19
得票数 14
1
回答
如何限制文本输入长度,而不是长度本身?
、
、
、
、
我正在
使用
AutoCompleteTextView
,我的目标是让用户只输入4个符号,然后从下拉列表中选择一个项目。
浏览 3
提问于2018-12-06
得票数 0
2
回答
如何设置EditText值,它依赖于安卓系统中的
AutoCompleteTextView
值?
、
、
对话框中有一个
AutoCompleteTextView
、Edittext和Button。如果
使用
AutoCompleteTextView
,请关注下拉列表。所以它可以很容易地选择。EditText值将随
AutoCompleteTextView
选择值的变化而变化。如何设置如果AutoComplete是AAA,然后将值设置为Edittext BBB。请参阅我的代码如下: private
AutoCompleteTextView
comple
浏览 3
提问于2015-02-24
得票数 0
回答已采纳
2
回答
局部变量可能未初始化
、
我不能将它与
AutoCompleteTextView
一起
使用
,因为它会告诉我局部变量是重复的。也尝试将其声明为静态的,但这是不允许的。 setContentView(R.layout.searchshop);
AutoCompleteTextView
autoCompletee = (
AutoCompleteTextView</e
浏览 0
提问于2012-01-27
得票数 0
3
回答
AutoCompleteTextView
onItemSelectedListener不工作
、
我有一个
AutoCompleteTextView
,并将onItemSelectedListener设置为它,但这不起作用。 import android.widget.ArrayAdapter; "Karen","M
浏览 0
提问于2012-02-12
得票数 49
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
跟我一起学docker-jenkins的使用
跟我一起学docker-docker compose的使用
Google Play电影终于可以与Google Home一起使用
一个在线客服系统可以多个网站一起使用吗?
如何使用手机翻译英文?一起来了解下吧
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券