我有这样的布局 -
<RelativeLayout
android:id="@+id/relativeLayoutTable"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_below="@+id/relativeLayout215"
android:layout_toRightOf="@+id/relativeLayout20" >
<ScrollView
android:id="@+id/scrollView"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:scrollbars="horizontal|vertical"
android:fillViewport="true"
android:scrollbarStyle="insideOverlay">
<HorizontalScrollView
android:id="@+id/horizontalScrollView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbarStyle="insideOverlay" >
<TableLayout
android:id="@+id/tableLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center" />
</HorizontalScrollView>
</ScrollView>
</RelativeLayout>
表格布局由以编程方式创建的单元格/视图组成。我已经为每个单元格/视图定义了 onClicklistener。现在,我还为scrollView 定义了onTouchlistener。我可以获取单元格/视图的点击事件,但我没有在滚动视图中获取 ACTION_POINTER_DOWN 事件。请帮忙。谢谢。