キープレス イベントの 1 秒後に何かを行う必要があります (比較的大きな ArrayList で検索し、それをカスタムでちょっと複雑なアダプターに表示します)。
Javaでこれを行うことはできますか?
そのためにハンドラーを使用できます。
private Handler handler = new Handler();
private Runnable actionRunnable = new Runnable() {
public void run(){
// your action here
}
};
private void handleKeypress() {
handler.removeCallbacks(actionRunnable);
handler.postDelayed(actionRunnable, 1000);
}
ワンショットタイマーを作成し、新しいキー イベントでキャンセルすることができます。
これは AutoCompleteTextView に似たものですか? 「検索」ボタンを追加するだけではオプションではないと思います。