How to set search interface in a Custom Spinner in Android

天涯浪子 提交于 2019-12-11 11:37:32

问题


I am new to android trying to create a custom spinner which hold so many of data in list so i made the spinnermode as dialog and now i want to make the searchable interface or autocomplete text on the dialog of the spinner as shown in below image and sorry i am unable to post the image with this post so i made it visible by clicking the below link. Help Me to get the result. Advance thanx ![enter image description here][1]

http://s28.postimg.org/w0h6qq959/dialogwithsearch.png


回答1:


Using an autocomplete textview will make it so much easier.

You can take a look at this tutorial for that:

http://www.tutorialspoint.com/android/android_auto_complete.htm



来源:https://stackoverflow.com/questions/26097932/how-to-set-search-interface-in-a-custom-spinner-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!