简体   繁体   English

Android垂直ListView与水平滚动

[英]Android vertical ListView with horizontal scroll

I'd like to create something like infinite calendar day list where rows will be single days and columns will be hours of the day. 我想创建类似无限日历日列表的内容,其中行将是单日,列将是一天中的小时。 But because there is more cols then screen is able to contain, I have to be able to scroll whole ListView horizontally (just to view what is beneath the screen) while preserving cell recycling on vertical scroll. 但是,由于屏幕包含的列数更多,因此我必须能够水平滚动整个ListView(仅查看屏幕下方的内容),同时保留垂直滚动时的单元回收。

Is this even possible? 这有可能吗? A was looking for some libraries that allow this but have no success :( A在寻找一些允许这样做但没有成功的库:(

Thanks 谢谢

It is possible, You can create a ListView with a custom Adapter that inflates the HorizontalScrollView 可能的是,您可以使用自定义Adapter创建一个ListView ,以使HorizontalScrollView膨胀

This post might be the answer to your question. 这篇文章可能是您问题的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM