OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:searchview
(Results
1 - 25
of
200
) sorted by null
1
2
3
4
5
6
7
8
/frameworks/support/v4/honeycomb/android/support/v4/widget/
SearchViewCompatHoneycomb.java
23
import android.widget.
SearchView
;
24
import android.widget.
SearchView
.OnCloseListener;
25
import android.widget.
SearchView
.OnQueryTextListener;
28
* Implementation of
SearchView
compatibility that can call Honeycomb APIs.
42
return new
SearchView
(context);
45
public static void setSearchableInfo(View
searchView
, ComponentName searchableComponent) {
46
SearchView
sv = ((
SearchView
)
searchView
);
66
public static void setOnQueryTextListener(Object
searchView
, Object listener)
[
all
...]
/frameworks/support/v4/java/android/support/v4/widget/
SearchViewCompat.java
27
* Helper for accessing features in {@link android.widget.
SearchView
}
34
void setSearchableInfo(View
searchView
, ComponentName searchableComponent);
35
void setImeOptions(View
searchView
, int imeOptions);
36
void setInputType(View
searchView
, int inputType);
38
void setOnQueryTextListener(Object
searchView
, Object listener);
40
void setOnCloseListener(Object
searchView
, Object listener);
41
CharSequence getQuery(View
searchView
);
42
void setQuery(View
searchView
, CharSequence query, boolean submit);
43
void setQueryHint(View
searchView
, CharSequence hint);
44
void setIconified(View
searchView
, boolean iconify)
[
all
...]
/frameworks/support/v4/ics/android/support/v4/widget/
SearchViewCompatIcs.java
21
import android.widget.
SearchView
;
24
* Implementation of
SearchView
compatibility that can call ICS APIs.
28
public static class MySearchView extends
SearchView
{
33
// The normal
SearchView
doesn't clear its search text when
46
public static void setImeOptions(View
searchView
, int imeOptions) {
47
((
SearchView
)
searchView
).setImeOptions(imeOptions);
50
public static void setInputType(View
searchView
, int inputType) {
51
((
SearchView
)
searchView
).setInputType(inputType)
[
all
...]
/cts/hostsidetests/theme/app/src/android/theme/app/modifiers/
SearchViewModifier.java
23
import android.widget.
SearchView
;
38
SearchView
searchView
= (
SearchView
) view;
43
searchView
.setQueryHint(context.getString(R.string.searchview_query_hint));
47
searchView
.setQuery(context.getString(R.string.searchview_query), false);
54
searchView
.setIconifiedByDefault(false);
55
return
searchView
;
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-SearchView/src/main/src/com/example/android/actionbarcompat/searchview/
SearchActivity.java
17
package com.example.android.actionbarcompat.
searchview
;
22
import android.support.v7.widget.
SearchView
;
27
* This sample shows you how to use {@link
SearchView
} to provide a search function in a single
64
* retrieve the
SearchView
.
72
// Now we get the
SearchView
from the item
73
final
SearchView
searchView
= (
SearchView
) MenuItemCompat.getActionView(searchItem);
76
// Set the hint text which displays when the
SearchView
is empty
77
searchView
.setQueryHint(getString(R.string.search_hint))
[
all
...]
/development/samples/ApiDemos/src/com/example/android/apis/view/
SearchViewFilterMode.java
27
import android.widget.
SearchView
;
31
* Shows a list that can be filtered in-place with a
SearchView
in non-iconified mode.
33
public class SearchViewFilterMode extends Activity implements
SearchView
.OnQueryTextListener {
37
private
SearchView
mSearchView;
50
mSearchView = (
SearchView
) findViewById(R.id.search_view);
SearchViewAlwaysVisible.java
31
import android.widget.
SearchView
;
37
* This demonstrates the usage of
SearchView
in an ActionBar as a menu item.
38
* It sets a SearchableInfo on the
SearchView
for suggestions and submitting queries to.
SearchViewActionBar.java
33
import android.widget.
SearchView
;
39
* This demonstrates the usage of
SearchView
in an ActionBar as a menu item.
40
* It sets a SearchableInfo on the
SearchView
for suggestions and submitting queries to.
42
public class SearchViewActionBar extends Activity implements
SearchView
.OnQueryTextListener {
44
private
SearchView
mSearchView;
64
mSearchView = (
SearchView
) searchItem.getActionView();
WindowFocusObserver.java
28
import android.widget.
SearchView
;
34
public class WindowFocusObserver extends Activity implements
SearchView
.OnQueryTextListener {
62
SearchView
searchView
= (
SearchView
) menu.findItem(R.id.action_search).getActionView();
63
searchView
.setOnQueryTextListener(this);
/development/samples/Support7Demos/src/com/example/android/supportv7/app/
ActionBarUsage.java
24
import android.support.v7.widget.
SearchView
;
53
SearchView
searchView
= (
SearchView
) MenuItemCompat
55
searchView
.setOnQueryTextListener(mOnQueryTextListener);
88
// The following callbacks are called for the
SearchView
.OnQueryChangeListener
89
// For more about using
SearchView
, see src/.../view/SearchView1.java and SearchView2.java
90
private final
SearchView
.OnQueryTextListener mOnQueryTextListener =
91
new
SearchView
.OnQueryTextListener() {
ToolbarUsage.java
31
import android.support.v7.widget.
SearchView
;
64
// Retrieve the
SearchView
and plug it into SearchManager
65
final
SearchView
searchView
= (
SearchView
) MenuItemCompat
69
searchView
.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
/developers/build/prebuilts/gradle/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/
MainActivity.java
24
import android.widget.
SearchView
;
82
// Associate searchable configuration with the
SearchView
85
SearchView
searchView
=
86
(
SearchView
) menu.findItem(R.id.search).getActionView();
87
searchView
.setSearchableInfo(
/developers/samples/android/content/contacts/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/
MainActivity.java
24
import android.widget.
SearchView
;
82
// Associate searchable configuration with the
SearchView
85
SearchView
searchView
=
86
(
SearchView
) menu.findItem(R.id.search).getActionView();
87
searchView
.setSearchableInfo(
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
WordActivity.java
31
import android.widget.
SearchView
;
74
SearchView
searchView
= (
SearchView
) menu.findItem(R.id.search).getActionView();
75
searchView
.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
76
searchView
.setIconifiedByDefault(false);
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/
MainActivity.java
24
import android.widget.
SearchView
;
82
// Associate searchable configuration with the
SearchView
85
SearchView
searchView
=
86
(
SearchView
) menu.findItem(R.id.search).getActionView();
87
searchView
.setSearchableInfo(
/frameworks/base/docs/html/training/search/
setup.jd
31
<p>Beginning in Android 3.0, using the {@link android.widget.
SearchView
} widget as an item in
33
the action bar, you can define the {@link android.widget.
SearchView
} to show at all times, only
35
android.widget.
SearchView
} as an icon initially, then takes up the entire action bar as a search
40
{@link android.widget.
SearchView
}.</p>
44
<p>To add a {@link android.widget.
SearchView
} widget to the action bar, create a file named
47
item. The <code>collapseActionView</code> attribute allows your {@link android.widget.
SearchView
}
59
android:actionViewClass="android.widget.
SearchView
" />
66
<p>To display the {@link android.widget.
SearchView
} in the action bar, inflate the XML menu
79
<p>If you run your app now, the {@link android.widget.
SearchView
} appears in your app's action
81
android.widget.
SearchView
} behaves.</p
[
all
...]
backward-compat.jd
25
<p>The {@link android.widget.
SearchView
} and action bar are only available on Android 3.0 and
47
{@link android.widget.
SearchView
} in the action bar (as demonstrated in the first lesson), only versions
67
android.widget.
SearchView
} does not occur on older devices. In our example code, this happens in
79
SearchView
searchView
=
80
(
SearchView
) menu.findItem(R.id.search).getActionView();
81
searchView
.setSearchableInfo(
83
searchView
.setIconifiedByDefault(false);
/cts/tests/tests/view/res/layout/
searchview.xml
16
<
SearchView
android:id="@+id/searchView1"
20
</
SearchView
>
/development/samples/ApiDemos/src/com/example/android/apis/app/
ActionBarUsage.java
24
import android.widget.
SearchView
;
25
import android.widget.
SearchView
.OnQueryTextListener;
52
SearchView
searchView
= (
SearchView
) menu.findItem(R.id.action_search).getActionView();
53
searchView
.setOnQueryTextListener(this);
81
// The following callbacks are called for the
SearchView
.OnQueryChangeListener
82
// For more about using
SearchView
, see src/.../view/SearchView1.java and SearchView2.java
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-SearchView/src/main/res/menu/
main.xml
30
SearchView
. We add the collapseActionView flag to showAsAction so that the
SearchView
is
37
support:actionViewClass="android.support.v7.widget.
SearchView
"
/developers/samples/android/content/LoaderCursor/src/com/example/android/content/loadercursor/
CursorLoaderListFragment.java
33
import android.widget.
SearchView
;
34
import android.widget.
SearchView
.OnCloseListener;
35
import android.widget.
SearchView
.OnQueryTextListener;
49
// The
SearchView
for doing filtering.
50
SearchView
mSearchView;
98
mSearchView = (
SearchView
) item.getActionView();
105
* The {@link OnCloseListener} called when the
SearchView
is closed. Resets
108
private
SearchView
.OnCloseListener closeListener = new
SearchView
.OnCloseListener() {
112
// Restore the
SearchView
if a query was entere
[
all
...]
MainActivity.java
24
import android.widget.
SearchView
;
30
* {@link
SearchView
} ActionBar item.
/frameworks/base/docs/html/sdk/api_diff/14/changes/
android.widget.SearchView.html
10
android.widget.
SearchView
74
Class android.widget.<A HREF="../../../../reference/android/widget/
SearchView
.html" target="_top"><font size="+2"><code>
SearchView
</code></font></A>
87
<A NAME="android.widget.
SearchView
.onActionViewCollapsed_added()"></A>
88
<nobr><code>void</code> <A HREF="../../../../reference/android/widget/
SearchView
.html#onActionViewCollapsed()" target="_top"><code>onActionViewCollapsed</code></A>()</nobr>
94
<A NAME="android.widget.
SearchView
.onActionViewExpanded_added()"></A>
95
<nobr><code>void</code> <A HREF="../../../../reference/android/widget/
SearchView
.html#onActionViewExpanded()" target="_top"><code>onActionViewExpanded</code></A>()</nobr>
101
<A NAME="android.widget.
SearchView
.setImeOptions_added(int)"></A>
102
<nobr><code>void</code> <A HREF="../../../../reference/android/widget/
SearchView
.html#setImeOptions(int)" target="_top"><code>setImeOptions</code></A>(<code>int</code>)</nobr>
108
<A NAME="android.widget.
SearchView
.setInputType_added(int)"></A
[
all
...]
/frameworks/base/docs/html/sdk/api_diff/16/changes/
android.widget.SearchView.html
10
android.widget.
SearchView
74
Class android.widget.<A HREF="../../../../reference/android/widget/
SearchView
.html" target="_top"><font size="+2"><code>
SearchView
</code></font></A>
86
<A NAME="android.widget.
SearchView
.getImeOptions_added()"></A>
87
<nobr><code>int</code> <A HREF="../../../../reference/android/widget/
SearchView
.html#getImeOptions()" target="_top"><code>getImeOptions</code></A>()</nobr>
93
<A NAME="android.widget.
SearchView
.getInputType_added()"></A>
94
<nobr><code>int</code> <A HREF="../../../../reference/android/widget/
SearchView
.html#getInputType()" target="_top"><code>getInputType</code></A>()</nobr>
100
<A NAME="android.widget.
SearchView
.getMaxWidth_added()"></A>
101
<nobr><code>int</code> <A HREF="../../../../reference/android/widget/
SearchView
.html#getMaxWidth()" target="_top"><code>getMaxWidth</code></A>()</nobr>
107
<A NAME="android.widget.
SearchView
.getQueryHint_added()"></A
[
all
...]
/frameworks/base/docs/html/sdk/api_diff/21/changes/
android.widget.SearchView.html
10
android.widget.
SearchView
74
Class android.widget.<A HREF="../../../../reference/android/widget/
SearchView
.html" target="_top"><font size="+2"><code>
SearchView
</code></font></A>
85
<A NAME="android.widget.
SearchView
.ctor_added(android.content.Context, android.util.AttributeSet, int)"></A>
86
<nobr><A HREF="../../../../reference/android/widget/
SearchView
.html#
SearchView
(android.content.Context, android.util.AttributeSet, int)" target="_top"><code>
SearchView
</code></A>(<code>Context,</nobr> AttributeSet<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
92
<A NAME="android.widget.
SearchView
.ctor_added(android.content.Context, android.util.AttributeSet, int, int)"></A>
93
<nobr><A HREF="../../../../reference/android/widget/
SearchView
.html#
SearchView
(android.content.Context, android.util.AttributeSet, int, int)" target="_top"><code>SearchView</cod (…)
[
all
...]
Completed in 1434 milliseconds
1
2
3
4
5
6
7
8