Just a simple Android example showing how to add a search widget with Autocompletion to the ActionBar without using Content Providers and the required overhead..
AutoCompleteActionBar is hosted in the following web site
https://github.com/ungesehn/AutoCompleteActionBar
If you think the Android project AutoCompleteActionBar listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of AutoCompleteActionBar.
Item | Value |
---|---|
Java File Count | 3 |
Supported screen sizes | [mdpi, hdpi, xhdpi] |
Target SDK Version | 19 |
Minimum SDK Version | 14 |
Activity Count | 1 |
jar files used | android-support-v4.jar |
There are 2 image files in AutoCompleteActionBar. The names of the image files are listed as follows.
action_search.png navigation_cancel.png
The following screenshort is generated from the image listed above.
AutoCompleteActionBar has the following Java source files.
com.autocompleteactionbar.MainActivity.java com.autocompleteactionbar.adapter.DropdownAdapter.java com.autocompleteactionbar.misc.ClearableAutoCompleteTextView.java