简体   繁体   中英

android difference between autocompletetextview and search view?

I want to provide suggestions from a sqlite database when user type in a text box. my understanding is that if you want to start a new activity then use search view, else use autocompletetextview. they both can accomplish my task. Am i right?

Both 'SearchView' and 'AutoCompleteTextView' are views, so it doesn't matter if your starting a new activity for either of them. The difference between them is that SearchView has a few additional abilities, such as the ability to connect a 'ContentProvider' to the view (like an SQLite database for example), whereas the AutoCompleteTextView is just an extended TextView control

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM