我按下退格鍵後,我的textwatcher工作,然後這個建議來了。 我有一個textwatcher,可以從網上生成書籍列表。我也等着看它是否是一個淨問題。但我發現它不是因爲,當我按空格鍵就開始工作smoothly.Please幫助TextWatcher工作遲到
textWatcher = new TextWatcher()
{
public void afterTextChanged(Editable s)
{
chars = s;
currentSearch = s;
startSuggestionsThread(s);
}
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
public void onTextChanged(CharSequence s, int start, int before, int count){
}
};
我startsuggestionsthread我做textview.setAdapter(適配器)。但其花費很多時間
粘貼您的代碼 – waqaslam 2012-07-17 12:54:50
textview instanceOf ListView? – DroidBender 2012-07-18 06:36:31
沒有它只是一個正常的自動完成文本視圖 – Sidk 2012-07-18 10:04:23