Fragment replacement triggers onQueryTextChange on searchview

前端 未结 7 777
臣服心动
臣服心动 2021-01-07 17:54

This is how I navigate through my app:

  • Open fragment with list
  • Filter list by a text entered in searchview
  • Tap on listitem (list fragment get
相关标签:
7条回答
  • 2021-01-07 18:50

    This is my solution:

     @Override
            public boolean onQueryTextChange(final String newText) {
    
                if (searchTF.isIconified())
                    return false;
    
                // put the "real" onQueryTextChange actions here
    
    
                return true;
    
    
            }
    
    0 讨论(0)
提交回复
热议问题