0
現在我有一個由遊標適配器驅動的列表活動。 我有一個AutoCompleteTextView,允許用戶過濾列表。代碼看起來像這樣:快速搜索框來過濾適配器
filterText = (AutoCompleteTextView) findViewById(R.id.search_box);
filterText.setAdapter(mAdapter);
filterText.setDropDownHeight(0); // hide the drop down, just filter the listActivity
filterText.setThreshold(1);
它很好用。我想切換到快速搜索框,所以我不佔用太多的屏幕空間,我覺得快速搜索框是更多的UI標準。 問題是快速搜索框並沒有真正過濾一個列表。它不會在每個輸入的字母上廣播意圖(只有當您點擊搜索按鈕時)。有沒有關於如何在某個地方做到這一點的好教程?