Coder Social home page Coder Social logo

hanhailong / flowtag Goto Github PK

View Code? Open in Web Editor NEW
897.0 21.0 176.0 104 KB

Android流式布局,支持点击、单选、多选,支持初始化选中标签(只针对单选和多选模式),适合用于产品标签等,用法采用Adapter模式,和ListView、GridView用法一样!!!

License: Apache License 2.0

Java 100.00%

flowtag's Issues

bug

当一个标签太长,多余一行时,标签就会重叠显示。
gif

动态添加标签的时候出现问题

可以看到,在增加标签能一行容纳4个的时候,如下图
5 lu7f 4tve3rv0 0 fd
然后再动态添加一个新标签,xxx13,会发现,不仅仅最后一行变成了3个,之前能容纳4个标签的也变成了3个一行,如下图
v6ok4dl7 3 1 oa a20m
动态添加用了如下代码
dataList.add(x,xxx)//在特定位置插入输入
notifyDataSetChanged();
因为继承的是BaseAdapter所以不能局部刷新
那么问题是什么?notifyDataSetChanged,导致之前的行宽度计算出问题了么?
原因我还在看,作者大大有空看看呗?

标签的删除

需要这样中模式(标签可删除),在已经存在的标签中 标签右上角有个×号 点击 可以删除此标签

RecyclerView?

Can you implement this with RecyclerView.Adapter instead of BaseAdapter?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.