最重要的是在linearLayout中加上如下代码: android:descendantFocusability="blocksDescendants" 和<ImageButton>中 android:focusable = "false"