Hi Guys,
I want a similar searching functionality like Twitter,etc apps. User will enter text and as per the text entered, user should get the updated set of options to choose from. I am fetching data from external database for that. Currently I used a web-service and passed the data to be searched in it, which gives me relevant results. I am calling that web service on onTextChanged
event of EditText
. But this causes me to fire that web-service every time a letter has been added. Can someone suggest a more efficient solution, as it is not giving me results as fast as Twitter app. Every time I ping database for each letter entered, which causes delay in showing results.
0条回答
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- What is the complexity of bisect algorithm?
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an