Add support for search widget.

For API level >= 11, use the search widget.
For API level < 11, use the search dialog.

For API level >=14, the search button will expand the search widget.
For API level < 14, the search button will invoke the search dialog.
This commit is contained in:
Jimmy Shih
2012-03-26 19:02:42 -07:00
parent 5da0afc509
commit 30b0348655
7 changed files with 125 additions and 11 deletions
+2 -1
View File
@@ -26,9 +26,10 @@ limitations under the License.
android:showAsAction="always"
android:title="@string/menu_stop_recording"/>
<item
android:actionViewClass="android.widget.SearchView"
android:icon="@drawable/menu_search"
android:id="@+id/menu_search"
android:showAsAction="always"
android:showAsAction="always|collapseActionView"
android:title="@string/menu_search"/>
<item
android:id="@+id/menu_import_all"