我对表格布局滚动感到困惑.我必须实现水平和垂直滚动表.我也看到了表修复标题示例,但tablefixheader示例使用了适配器来设置数据,但我需要在表格布局中添加视图方法.我使用下面的代码,但它不支持两种方式滚动
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical" >
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:fadeScrollbars="false">
<TableLayout
android:id="@+id/tableLayoutId"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</HorizontalScrollView>
</ScrollView>
Run Code Online (Sandbox Code Playgroud)