具有RecyclerView的TableLayout [英] TableLayout with RecyclerView
问题描述
RecyclerView
只有两个布局管理器:LinearLayoutManager
和GridLayoutManager
.有没有办法将TableLayout
用作RecyclerView
的布局管理器?有什么建议吗?
There is only two layout manager for RecyclerView
: LinearLayoutManager
and GridLayoutManager
. Is there a way to use TableLayout
as layout manager with RecyclerView
? Any suggestion?
我想知道是否有任何解决方案都可以不从零开始编写布局管理器. TableLayout
行为对我来说就足够了,只想为处理大量fo数据时出现的性能问题添加回收功能.
I wonder if there is any solution without writing a layout manager from zero. TableLayout
behaviour is enough for me, just want to add recycle feature for performance issues on handling large amount fo data.
创建一个看起来像listview的表并不能解决我的问题,因为我的表非常动态,我什至不知道列名,客户决定表的所有细节.因此,单元格将是自定义的,列宽需要根据内容长度自动调整大小.我认为listview不能解决这个问题.
And creating a table looking listview is not solve my problem I think, because my table is very dynamic, I don't know even column names, customer deciding all details of the table. So cells would be custom, column widths needs to be auto resizing depend on content length. I don't think listview can handle that.
预先感谢您的帮助.
推荐答案
有许多开放源代码库和代码可用于查找如何开发它.
There are many open source libraries and codes available to find out how it can be developed.
- https://github.com/evrencoskun/TableView
- https://github.com/HYY-yu/TableRecyclerView
- https://github.com/Cleveroad/AdaptiveTableLayout
- https://github.com/celerysoft/TableFixHeaders
- https://github.com/evrencoskun/TableView
- https://github.com/HYY-yu/TableRecyclerView
- https://github.com/Cleveroad/AdaptiveTableLayout
- https://github.com/celerysoft/TableFixHeaders
这篇关于具有RecyclerView的TableLayout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!