android Gallery與imageView 滑動衝突問題解決方法android
1:將gallery的觸摸事件換成imageView的觸摸事件ide
imageView.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
Gallery.onTouchEvent(event);
return false;
}
});spa
2:重寫Gallrey: 事件
OnIntercepTouchEvent 設置判斷ev.action;it