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