可以用Searchview 也可以用下面的方法 https://blog.csdn.net/ws15168689087/article/deails/115765621utm_source=app&app_version=4.14.1