2
我正在使用使用SoundPool播放声音的图像按钮。下面是一个图像按钮的示例代码:为什么多点触控不能用于我的图像按钮?
ImageButton Button1 =(ImageButton)findViewById(R.id.sound); Button1.setOnTouchListener(新OnTouchListener(){
public boolean onTouch(View v, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
mSoundManager.playSound(1);
return false;
}
return false;
}
});
出于某种原因,它不允许你点击在同一时间多个按钮。是不是因为我要建1.6 SDK?
谢谢!
另外,如果不是从代码明显,我imagebuttons每个人都有一个onTouchListener() 。任何帮助表示赞赏。 – codeman 2010-05-02 03:44:37