Comments (8)
还有一个问题,当我增加了一个item我要怎么拿到增加的这个item的下标呢?拖拽改变顺序以后新的下标又该怎么得到呢?
from android-drag-flowlayout.
1, 第一个问题和测量布局有关。稍后我会看看。
2,第2个问题,你可以说下你的具体需求么? 为什么需要新的下标。(公司项目里我也用了我这库的哈)
from android-drag-flowlayout.
关于第二个问题:既然标签能够拖拽排序了,肯定想要记住标签的顺序,这样才能在其他页面按照这个页面排序使用,另外如果这是标签订阅功能,那么当取消订阅的时候要把当前标签返回到未订阅标签栏某个位置,可能是该标签之前未订阅时候的位置。大概是这个意思,。
from android-drag-flowlayout.
标签的顺序, 直接通过 mDragflowLayout.getDragItemManager().getItems() 获取到所有标签list。 订阅->未订阅 就是点击删除嘛。关于你说的 “另外如果这是标签订阅功能,那么当取消订阅的时候要把当前标签返回到未订阅标签栏某个位置,可能是该标签之前未订阅时候的位置。” 这句话的意思是否是 还原到订阅之前的状态?
from android-drag-flowlayout.
就是另外还有一个ListView专门放所有未订阅标签,取消订阅那该标签在未订阅列表里重新出现
from android-drag-flowlayout.
拖拽流布局里面的标签 一般都是订阅了的。未订阅的标签属于额外的逻辑。最好的话。自己维护一个。我这边都是自己维护的
from android-drag-flowlayout.
恩,好的,谢谢解答~
from android-drag-flowlayout.
客气了。
from android-drag-flowlayout.
Related Issues (17)
- 在拖动模式下,拖动的view在开始拖动的时候位置不准确,会有很大的跳动,体验不好呀 HOT 4
- 可以固定显示几列吗 HOT 1
- 当首屏item占满时,拖拽item到底部,想放置在第二屏,控件无法跟随滚动到第二屏 HOT 2
- 没有设置数据源的方法吗 HOT 3
- 我可以调用删除方法吗 HOT 1
- 怎么禁止所有元素拖动 HOT 1
- 导入库运行时crash HOT 2
- android x HOT 2
- 设置动画效果后,拖动十分的卡顿
- 设置默认动画的时候就崩溃了 HOT 5
- README文档感觉说明不是很清楚,对于初接触的人来说不知道该怎么用 HOT 3
- error message "package android.support.annotation does not exist" HOT 2
- 旋转屏幕,生命周期变化导致数据全部抹除 HOT 4
- com.heaven7.memory.util.Cacher not found HOT 1
- DragFlowLayout inside a Scrollview not working properly HOT 2
- 没有长按的情况下(删除按钮不出现),单独的item点击事件没有做处理 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-drag-flowlayout.