Is it there a better way to Search HashMap from ArrayList
问题 I am trying to implement Searching in ListView . My ListView is comprised of HashMap in ArrayList and I managed to implement the logic but I guess there is much object and memory allocation in my approach each time the text change. Therefore I am looking for less memory allocated logic to search in my ListView with HashMap in ArrayList @Override public void onTextChanged(CharSequence s, int start, int before, int count) { //textlength = searchBar.getText().length(); //text_sort.clear();