简体   繁体   中英

Android ListActivity ArrayAdapter filtering with no physical keyboard?

I have a ListActivity based on an ArrayAdapter with setTextFilterEnabled set to 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. Then, AFAIK, filtering works as normal.

Note that I don't do much ListView filtering, so I'm basing this on my recollection of past discussions of this issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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