大佬教程收集整理的这篇文章主要介绍了android – HorizontalScrollView中的SortableTableView不断增长,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用这个库为我的应用程序提供可排序的表格视图:https://github.com/ISchwarz23/SortableTableView.因为应用程序应该在智能手机上锁定为纵向模式,我将视图放入HorizontalScrollView,以便用户可以滚动以查看列的不同列.
我的问题是,每次我在列标题上选项卡对表进行排序时,表格会变宽一些.你知道造成这种情况的原因是什么,或者我怎么能阻止它发生?
如果您想自己查看,只需导入克隆存储库时包含的库的示例应用程序并稍微修改它即可.只需将tableview放入HorizontalScrollView即可看到此行为.
@H_392_5@main_activity.xml如下所示:
<RelativeLayout xmlns:android="http://scheR_635_11845@as.android.com/apk/res/android" xmlns:tools="http://scheR_635_11845@as.android.com/tools" xmlns:custom="http://scheR_635_11845@as.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="de.codecrafters.tableviewexample.MainActivity"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:BACkground="@color/priMary" custom@R_487_6964@="@String/title_activity_main" custom:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /> <android.widget.horizontalscrollview android:id="@+id/scrollView" android:layout_width="match_parent" android:layout_height="match_parent"> <de.codecrafters.tableviewexample.sortableCarTableView android:id="@+id/tableView" android:layout_width="match_parent" android:layout_height="match_parent" android:layouT_Below="@id/toolbar" custom:columnCount="4" custom:headerElevation="10" custom:headerColor="@color/priMary" /> </android.widget.horizontalscrollview> </RelativeLayout>
如果您需要其他信息,请告诉我.任何帮助非常感谢!
以上是大佬教程为你收集整理的android – HorizontalScrollView中的SortableTableView不断增长全部内容,希望文章能够帮你解决android – HorizontalScrollView中的SortableTableView不断增长所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。