diff options
author | Scott Main <smain@google.com> | 2011-02-08 10:20:27 -0800 |
---|---|---|
committer | Scott Main <smain@google.com> | 2011-03-14 13:27:53 -0700 |
commit | abdf0d533c292709e51cee2c1213d5e44baca963 (patch) | |
tree | f9dbc5c63d7a4123b3c6f9a5761411c34a55ccf6 /docs/html/guide/topics/ui/actionbar.jd | |
parent | 9f18729676a58cdfcee98db3329de3397c657d48 (diff) | |
download | frameworks_base-abdf0d533c292709e51cee2c1213d5e44baca963.zip frameworks_base-abdf0d533c292709e51cee2c1213d5e44baca963.tar.gz frameworks_base-abdf0d533c292709e51cee2c1213d5e44baca963.tar.bz2 |
docs: update search dev guide with SearcView widget
Change-Id: Ieb0ccdb78760a3c90df2381e647463f7532b0efc
Diffstat (limited to 'docs/html/guide/topics/ui/actionbar.jd')
-rw-r--r-- | docs/html/guide/topics/ui/actionbar.jd | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/docs/html/guide/topics/ui/actionbar.jd b/docs/html/guide/topics/ui/actionbar.jd index 065f95a..d8898ae 100644 --- a/docs/html/guide/topics/ui/actionbar.jd +++ b/docs/html/guide/topics/ui/actionbar.jd @@ -323,8 +323,7 @@ the item is enabled as an action item.</p> <p>When adding an action view for a menu item, it's important that you still allow the item to behave as a normal menu item when it does not appear in the Action Bar. For example, a menu item to -perform a search should, by default, bring up the <a -href="{@docRoot}guide/topics/search/search-dialog.html">search dialog</a>, but if the item is +perform a search should, by default, bring up the Android search dialog, but if the item is placed in the Action Bar, the action view appears with a {@link android.widget.SearchView} widget. Figure 4 shows an example of the {@link android.widget.SearchView} widget in an action view.</p> @@ -369,9 +368,7 @@ always appear as an action view by setting {@code android:showAsAction} to {@cod <p>Now, when the menu item is displayed as an action item, it's action view appears instead of the icon and/or title text. However, if there's not enough room in the Action Bar, the item appears in the overflow menu as a normal menu item and you must respond to it from the {@link -android.app.Activity#onOptionsItemSelected onOptionsItemSelected()} callback method. (For a -guide to providing search functionality, see the <a -href="{@docRoot}guide/topics/search/index.html">Search</a> documentation.)</p> +android.app.Activity#onOptionsItemSelected onOptionsItemSelected()} callback method.</p> <p>When the activity first starts, the system populates the Action Bar and overflow menu by calling {@link android.app.Activity#onCreateOptionsMenu onCreateOptionsMenu()}. @@ -392,8 +389,8 @@ public boolean onCreateOptionsMenu(Menu menu) { } </pre> -<p>For more information about enabling search in the Action Bar, see the <a -href="{@docRoot}guide/topics/search/index.html">Search</a> developer guide.</p> +<p>For more information about using the search widget, see <a +href="{@docRoot}guide/topics/search/search-dialog.html">Creating a Search Interface</a>.</p> |