本文整理了Java中android.app.Activity.onSearchRequested()
方法的一些代码示例,展示了Activity.onSearchRequested()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.onSearchRequested()
方法的具体详情如下:
包路径:android.app.Activity
类名称:Activity
方法名:onSearchRequested
暂无
代码示例来源:origin: com.uphyca/android-junit4-robolectric
/**
* @return
* @see android.app.Activity#onSearchRequested()
*/
public boolean onSearchRequested() {
return mActivity.onSearchRequested();
}
代码示例来源:origin: iqiyi/Neptune
@Override
public boolean onSearchRequested() {
return mOriginActivity.onSearchRequested();
}
代码示例来源:origin: iqiyi/Neptune
@RequiresApi(api = Build.VERSION_CODES.M)
@Override
public boolean onSearchRequested(android.view.SearchEvent searchevent0) {
return mOriginActivity.onSearchRequested(searchevent0);
}
代码示例来源:origin: shazam/android-aspects
@Override
public boolean onSearchRequested() {
return super.onSearchRequested() || dispatcher.dispatchOnSearchRequested(this);
}
代码示例来源:origin: MoMoWait/LeanbackLauncher
public boolean onSearchRequested() {
setShyMode(true, true);
return super.onSearchRequested();
}
代码示例来源:origin: rockon999/LeanbackLauncher
public boolean onSearchRequested() {
setShyMode(true, true);
return super.onSearchRequested();
}
代码示例来源:origin: iqiyi/Neptune
@Override
public boolean onSearchRequested() {
if (getController() != null) {
getController().getPlugin().onSearchRequested();
}
return super.onSearchRequested();
}
代码示例来源:origin: iqiyi/Neptune
@Override
public boolean onSearchRequested(SearchEvent searchEvent) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (getController() != null) {
return getController().getPlugin().onSearchRequested(searchEvent);
}
return super.onSearchRequested(searchEvent);
} else {
return false;
}
}
代码示例来源:origin: CloudRail/cloudrail-si-android-sdk
getOwnActivity().onSearchRequested();
break;
代码示例来源:origin: ELynx/pokemon-go-xposed-mitm
public boolean onSearchRequested() {
if (ScriptLoader.isCalledFromJRuby()) return super.onSearchRequested();
if (!JRubyAdapter.isInitialized()) {
Log.i("Method called before JRuby runtime was initialized: RubotoActivity#onSearchRequested");
return super.onSearchRequested();
}
String rubyClassName = scriptInfo.getRubyClassName();
if (rubyClassName == null) return super.onSearchRequested();
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :onSearchRequested}")) {
return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "onSearchRequested");
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(false).any?{|m| m.to_sym == :on_search_requested}")) {
return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "on_search_requested");
} else {
if ((Boolean)JRubyAdapter.runScriptlet(rubyClassName + ".instance_methods(true).any?{|m| m.to_sym == :on_search_requested}")) {
return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "on_search_requested");
} else {
return (Boolean) JRubyAdapter.runRubyMethod(Boolean.class, scriptInfo.getRubyInstance(), "onSearchRequested");
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!