= null) { playSoundEffect(SoundEffectConstants.CLICK); li.mOnClickListener.onClick
= null) { playSoundEffect(SoundEffectConstants.CLICK); // 此处直接执行了 点击监听器 的点击方法...= null) { playSoundEffect(SoundEffectConstants.CLICK); // 此处直接执行了 点击监听器 的点击方法
= null) { playSoundEffect(SoundEffectConstants.CLICK); //这个不就是相当于B类调用A类的某个方法D,这个D就是所谓的回调方法咯
= null) { playSoundEffect(SoundEffectConstants.CLICK); //这个不就是相当于
== null) { playSoundEffect(SoundEffectConstants.CLICK); li.mOnClickListener.onClick(this
= null) { playSoundEffect(SoundEffectConstants.CLICK); li.mOnClickListener.onClick(this
= null) { playSoundEffect(SoundEffectConstants.CLICK); mOnClickListener.onClick(this)
保存后(会自动 Hot Reload),我们再次点击按钮,在我的设备上,打印出了下面这样的信息: I/flutter (11297): _onPressed V/AudioManager(11297): playSoundEffect
playSoundEffect 播放声音效果,主要就是按键时有个反馈 sendEvent 发送事件,这个关键方法,模拟了发送按键的动作 主要按键参数为,什么时间,按下还是弹起,什么按键,是否长按 onTouchEvent
v, mTempRect); } if (v.requestFocus(direction, mTempRect)) { playSoundEffect
getAdapter().isEnabled(mPinnedSection.position)) { View view = mPinnedSection.view; playSoundEffect
领取专属 10元无门槛券
手把手带您无忧上云