简体   繁体   中英

Difference between Search Dialog and Search Widget Android

I want to know the difference between Search Dialog and Search Widget in Android. I know how to implement each of them with code but don't know difference in terms of looks, behaviors etc. Any help would be highly appreciated.

The search dialog is a UI component that's controlled by the Android system. When activated by the user, the search dialog appears at the top of the activity.

The search widget is an instance of SearchView that you can place anywhere in your layout. By default, the search widget behaves like a standard EditText widget and doesn't do anything, but you can configure it so that the Android system handles all input events, delivers queries to the appropriate activity, and provides search suggestions

The basics section on how to create a search interface in the Android docs explains it really well.

http://developer.android.com/guide/topics/search/search-dialog.html

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