简体   繁体   English

Android ListActivity ArrayAdapter过滤没有物理键盘?

[英]Android ListActivity ArrayAdapter filtering with no physical keyboard?

I have a ListActivity based on an ArrayAdapter with setTextFilterEnabled set to true. 我有一个基于ArrayAdapter的ListActivity,其setTextFilterEnabled设置为true。 This works fine on a device with a physical keyboard. 这在带有物理键盘的设备上工作正常。 When I start typing something on the keyboard, the items get filtered. 当我开始在键盘上键入内容时,项目会被过滤掉。

My question is how to get the same behavior on a device with no physical keyboard? 我的问题是如何在没有物理键盘的设备上获得相同的行为?

The user needs to long-tap the MENU button to bring up the soft keyboard. 用户需要长按MENU按钮以调出软键盘。 Then, AFAIK, filtering works as normal. 然后,AFAIK,过滤正常。

Note that I don't do much ListView filtering, so I'm basing this on my recollection of past discussions of this issue. 请注意,我没有做太多的ListView过滤,所以我的回忆是基于我对此问题的过去讨论的回忆。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM