Java 类android.widget.SearchView.OnCloseListener 实例源码
项目:boohee_v5.6
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
public boolean onClose() {
return listener.onClose();
}
};
}
项目:permissionsModule
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:diskusage
文件:DiskUsageMenuHoneycomb.java
@Override
public MenuItem makeSearchMenuEntry(Menu menu) {
MenuItem item = menu.add("Search");
searchView = new SearchView(diskusage);
origSearchBackground = searchView.getBackground();
item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
item.setIcon(android.R.drawable.ic_search_category_default);
item.setActionView(searchView);
if (searchPattern != null) {
searchView.setIconified(false);
searchView.setQuery(searchPattern, false);
}
searchView.setOnCloseListener(new OnCloseListener() {
@Override
public boolean onClose() {
Log.d("diskusage", "search closed");
searchPattern = null;
diskusage.applyPatternNewRoot(masterRoot, null);
return false;
}
});
searchView.setOnQueryTextListener(new OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
onQueryTextChange(query);
return false;
}
@Override
public boolean onQueryTextChange(String newText) {
Log.d("diskusage", "search query changed to: " + newText);
searchPattern = newText;
applyPattern(searchPattern);
return true;
}
});
return item;
}
项目:ShoppingMall
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:CodenameOne
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:adt-leanback-support
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:informant-droid
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:DiskUsage.0
文件:DiskUsageMenuHoneycomb.java
@Override
public MenuItem makeSearchMenuEntry(Menu menu) {
MenuItem item = menu.add("Search");
searchView = new SearchView(diskusage);
origSearchBackground = searchView.getBackground();
item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
item.setIcon(android.R.drawable.ic_search_category_default);
item.setActionView(searchView);
if (searchPattern != null) {
searchView.setIconified(false);
searchView.setQuery(searchPattern, false);
}
searchView.setOnCloseListener(new OnCloseListener() {
@Override
public boolean onClose() {
Log.d("diskusage", "search closed");
searchPattern = null;
diskusage.applyPatternNewRoot(masterRoot, null);
return false;
}
});
searchView.setOnQueryTextListener(new OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
onQueryTextChange(query);
return false;
}
@Override
public boolean onQueryTextChange(String newText) {
Log.d("diskusage", "search query changed to: " + newText);
searchPattern = newText;
applyPattern(searchPattern);
return true;
}
});
return item;
}
项目:bitcast
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:V.FlyoutTest
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:guideshow
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:IntranetEpitechV2
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:MoSeS--Client-
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:android.support.v4
文件:SearchViewCompatHoneycomb.java
public static Object newOnCloseListener(final OnCloseListenerCompatBridge listener) {
return new OnCloseListener() {
@Override
public boolean onClose() {
return listener.onClose();
}
};
}
项目:boohee_v5.6
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:permissionsModule
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:ShoppingMall
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:CodenameOne
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:adt-leanback-support
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:informant-droid
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:bitcast
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:V.FlyoutTest
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:guideshow
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:IntranetEpitechV2
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:MoSeS--Client-
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}
项目:android.support.v4
文件:SearchViewCompatHoneycomb.java
public static void setOnCloseListener(Object searchView, Object listener) {
((SearchView) searchView).setOnCloseListener((OnCloseListener) listener);
}