此时不会用到autocomplete编辑,而是为EditText添加addTextChangedListener事件

//搜索框
searchText.addTextChangedListener(new TextWatcher() {
String urlStr = "r=game/getList&lang=" + APP_LANGUAGE;

@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
serachKeyWord = searchText.getText().toString();
if( listFlag == "game" ){
urlStr = "r=game/getList&lang=" + APP_LANGUAGE + "&access_token=" + access_token + "&p + serachKeyWord;
}
getCardListData(urlStr, httpPort);
}
}

@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {

}

@Override
public void afterTextChanged(Editable s) {

}
});

相关文章:

  • 2022-01-15
  • 2021-05-31
  • 2021-06-06
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2021-11-05
  • 2021-04-27
  • 2022-12-23
相关资源
相似解决方案