Android AutocompleteTextView using ArrayAdapter and Filter

后端 未结 3 1135
梦如初夏
梦如初夏 2020-12-29 22:04

Backgroud information

The app I am currently writing deals with places. The main method to create a place is to enter an address. Providing a convenient way to do

3条回答
  •  [愿得一人]
    2020-12-29 22:36

    Try to change this part of the code:

    if ( filterResults.count > 0) {
        lastSuggested = (ArrayList
    ) filterResults.values; } lastInput = constraint.toString();

    into this:

    if ( filterResults.count > 0) {
        lastSuggested = (ArrayList
    ) filterResults.values; lastInput = constraint.toString(); }

提交回复
热议问题