如何创建这种类型的视图TimeSchedule视图(水平时间线)

问题描述 投票:0回答:1

如何制作这种类型的视图

enter image description hereenter image description here

我正在尝试使用表视图和动态数据,同时希望标题和列也修复在线垂直滚动,但标题除外,带有标题的水平滚动期望第一列

我能够创建带有修复标题和列的视图,但是使用动态数据像这样跨列时出现问题

java android android-layout tableview timeline
1个回答
0
投票
如果您正在使用标签来获取固定的标题解决方案,如下所示

骷髅

<table> <thead> <th>1</th> <th>2</th> <th>3</th> <th>4</th> </thead> </table> <table> <thead> <th>1</th> <th>2</th> <th>3</th> <th>4</th> </thead> <tbody> <tr></tr> <tr></tr> <tr></tr> <tr></tr> </tbody> </table>

这样,您将获得一个固定的标题。我在大学项目中做了很久。我认为您也正在这样做。
© www.soinside.com 2019 - 2024. All rights reserved.