17
我在表格布局中完全困惑。我必须实现水平和垂直滚动的表格。我也看到表修复头示例,但tablefixheader示例已使用适配器来设置数据,但我需要表格布局中的添加视图方法。 我用下面的代码,但它不能支持双向滚动如何在android中水平和垂直滚动表格布局
<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>
感谢和它的作品真棒...... – user1811379
@ user1811379,欢迎你,有一个很好的编码。 –
很棒的+1。你应该添加一点解释它为什么工作=) – user2336315