Android 流式布局

FlowLayoutManager

Travis branch

这是一个自定义实现流式布局的LayoutManager,配合RecyclerView使用,可实现标签效果;目前的问题是没有实现View的缓存,以后再补吧。

Github源码 https://github.com/changleibox/FlowLayoutManager。

代码示例

1 FlowLayoutManager manager = (FlowLayoutManager) recyclerView.getLayoutManager(); 2 manager.setSpace(space, space); 3 manager.setOrientation(FlowLayoutManager.HORIZONTAL);

下载与安装

下载.zip

项目运行效果

水平模式

水平模式=324x574

垂直模式

垂直模式=324x574

参与者介绍

项目由@常磊个人开发,如有问题,欢迎指出,邮箱changleibox@sina.com

License

1Copyright © 2017 CHANGLEI. All rights reserved. 2 3Licensed under the Apache License, Version 2.0 (the "License"); 4you may not use this file except in compliance with the License. 5You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9Unless required by applicable law or agreed to in writing, software 10distributed under the License is distributed on an "AS IS" BASIS, 11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12See the License for the specific language governing permissions and 13limitations under the License.
点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

Opencv中Mat矩阵相乘——点乘、dot、mul运算详解

Opencv中Mat矩阵相乘——点乘、dot、mul运算详解2016年09月02日00:00:36 \牧野(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fme.csdn.net%2Fdcrmg) 阅读数:59593

Python之scrapy实现的爬虫,百度贴吧的自动签到和自动发帖、自动回帖

百度贴吧Crawler!Travisbranch(https://img.shields.io/travis/rustlang/rust/master.svg)(https://gitee.com/changleibox/TiebaCrawler)实现百度贴吧的自动签到和自动发帖、自动回帖实现Cookies