百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

AdaptiveTableLayout

> 数据库
开源

一个库,可用于读取、编辑和写入 CSV 文件

1.9K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个库,可用于读取、编辑和写入 CSV 文件

# AdaptiveTableLayout [](https://github.com/sindresorhus/awesome) ## Welcome the new CSV Library AdaptiveTableLayout for Android by Cleveroad Pay your attention to our new library that makes it possible to read, edit and write CSV files. If you use Android-based device, you can easily use our library for implementation of all aforementioned actions. In addition, you will be able to change rows and columns, display the picture via link, and align the required data. It will surely help you cope with your tasks faster and make your output higher. AdaptiveTableLayout library is at your disposal. #### Take a look at the animation of AdaptiveTableLayout for Android on YouTube in HD quality. For using this library in a valuable way, you can find our CSV Editor app on the Google Play Store or on Appetize. [](https://play.google.com/store/apps/details?id=com.cleveroad.tablelayout)[](https://appetize.io/app/wgacjavwr57fec241bq802gzcg?device=nexus5&scale=75&orientation=portrait&osVersion=7.0) The main goal of the library is to apply all its functions in the process of working with CSV files. Moreover, it will give you a competitive edge over others.
## Setup and usage ### Installation by gradle : ```groovy dependencies { implementation "com.cleveroad:adaptivetablelayout:1.2.1" } ``` ### Features ### Library consists of three parts: - AdaptiveTableLayout (View) - LinkedAdaptiveTableAdapter (Adapter) - ViewHolderImpl (ViewHolder) ### Usage ### #### AdaptiveTableLayout #### ```XML ``` | attribute name | description | |---|---| | cellMargin | margin between cards | | fixedHeaders | fixed headers mode. If enable, headers always will be displayed in the corners. | | solidRowHeaders | solid row headers mode. If enable, row header will change its position with dragging row. | | dragAndDropEnabled | drag and drop mode. If enable, column or row will change its position with dragging after long press on row or column header. | ``` … ``` #### Adapter #### You could use adapter interfaces: AdaptiveTableAdapter and DataAdaptiveTableLayoutAdapter. But to simplify the usage, library contains base adapters: BaseDataAdaptiveTableLayoutAdapter and LinkedAdaptiveTableAdapter. BaseDataAdaptiveTableLayoutAdapter - simple adapter which works with light data. WARNING! on each row/column switch, original data will be changed. LinkedAdaptiveTableAdapter - adapter which works with heavy data. WARNING! This type of adapter doesn't change original data. It contains matrix with changed items with links on it. To get changed data you need use AdaptiveTableLayout.getLinkedAdapterRowsModifications() and AdaptiveTableLayout.getLinkedAdapterColumnsModifications(). Don't forget to check AdaptiveTableLayout.isSolidRowHeader() flag. If it's false, you need to ignore switching first elemet in each row. For both adapters you need to know all rows/columns widths, heights and rows/columns count before set adapter to AdaptiveTableLayout. #### Fragment/Activity usage #### ```groovy mTableLayout = (AdaptiveTableLayout) view.findViewById(R.id.tableLayout); ... mTableAdapter = new SampleLinkedTableAdapter(getContext(), mCsvFileDataSource); mTableAdapter.setOnItemClickListener(...); mTableAdapter.setOnItemLongClickListener(...); mTableLayout.setAdapter(mTableAdapter); ... mTableLayout.setHeaderFixed(true); mTableLayout.setSolidRowHeader(true); mTableAdapter.notifyDataSetChanged(); ``` #### XML usage #### ```groovy ``` #### Adapter usage #### Adapter sample ## Changelog See [changelog history]. ### Support ### If you have any questions, issues or propositions, please create a new issue in this repository. If you want to hire us, send an email to [email protected] or fill the form on contact page Follow us: [](https://twitter.com/cleveroadinc) [](https://plus.google.com/+CleveroadInc) [](https://www.linkedin.com/company/cleveroad-inc-) [](https://www.youtube.com/channel/UCFNHnq1sEtLiy0YCRHG2Vaw)
### License ### * * * The MIT License (MIT) Copyright (c) 2016 Cleveroad Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. [changelog history]: /CHANGELOG.md

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •AdaptiveTableLayout (View)
  • •LinkedAdaptiveTableAdapter (Adapter)
  • •ViewHolderImpl (ViewHolder)

> 标签

Javaandroid-libraryawesome-listcsvcsv-files

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库