具有RecyclerView的TableLayout [英] TableLayout with RecyclerView

查看:158
本文介绍了具有RecyclerView的TableLayout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RecyclerView只有两个布局管理器:LinearLayoutManagerGridLayoutManager.有没有办法将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.

  1. https://github.com/evrencoskun/TableView
  2. https://github.com/HYY-yu/TableRecyclerView
  3. https://github.com/Cleveroad/AdaptiveTableLayout
  4. https://github.com/celerysoft/TableFixHeaders
  1. https://github.com/evrencoskun/TableView
  2. https://github.com/HYY-yu/TableRecyclerView
  3. https://github.com/Cleveroad/AdaptiveTableLayout
  4. https://github.com/celerysoft/TableFixHeaders

这篇关于具有RecyclerView的TableLayout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆