Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 290
Erdal Avatar asked Mar 26 '26 22:03

Erdal


1 Answers

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.

like image 152
CommonsWare Avatar answered Mar 29 '26 12:03

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!