网格布局上的翻转手势检测
问题: I want to get fling gesture detection working in my Android application. 我想 fling 手势检测工作在我的Android应用程序。 What I have is a GridLayout that contains 9 ImageView s. 我所拥有的是一个 GridLayout ,其中包含9个 ImageView 。 The source can be found here: Romain Guys's Grid Layout . 可以在这里找到源: Romain Guys的Grid Layout 。 That file I take is from Romain Guy's Photostream application and has only been slightly adapted. 我带的那个文件来自Romain Guy的 Photostream应用程序 ,只是稍作修改。 For the simple click situation I need only set the onClickListener for each ImageView I add to be the main activity which implements View.OnClickListener .