2011-05-03 112 views

回答

2

寫你自己的畫廊類,擴展畫廊。使用類似下面的內容覆蓋onFling方法:

public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY){ 
if (itemIsSelected) 
    return true; 
else return super.onFling(e1, e2, velocityX, velocityY); 
} 

在您的onItemClickListener中設置itemIsSelected標誌。

希望有所幫助。

相關問題