alphaboom / classifyview Goto Github PK
View Code? Open in Web Editor NEWNo longer maintained
License: Apache License 2.0
No longer maintained
License: Apache License 2.0
你好,我在用activity中使用你这个控件时(不是在fragment中),仿照文件夹的例子,按最基本的模式进行引用,其他都正常,但有一个问题:当长按某个内容图标后,这个图标就消失了,并没有出现一个浮在最上层的图标,称动时也没有,等移到放开后该图标才出现,这可能是什么原因,可以怎么解决?急!
想问下为什么不用DragShadowBuilder绘制拖动的View而是用操作dragview位移来自己实现拖动效果呢,是有什么坑存在吗?
我想要实现mainRecyclerview上长按拖动也可以拖动到recyclerview视图外的效果,但是pressedView.startDrag()以后触摸事件就被上面层级的view给拦截了,想在RecyclerView.OnItemTouchListener.onTouchEvent里操作dragview位移这条路走不通。感觉用DragShadowBuilder自己绘制的View可以达到想要的效果,不太清楚作者为什么抛弃了这种做法?
My account was compromised, as a result many spam issues got created across multiple repos. I am deleting all such issues. Please check my tweet: https://x.com/arghyac35/status/1729721954909684064?s=20
这个文件貌似没有上传?
你好,我运行在基本效果中长按item后直接崩溃。
另外,我想请教下,当使用ItemTouchHelper处理拖动的时候,如何判断拖动时,item1拖动到item2上面了,就是想实现的效果是合并。非常急的功能,能否赐教?感谢!!!!
Process: com.iwith.classifyviewtest, PID: 22192 android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@141956e is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:765) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:356) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93) at com.anarchy.classify.ClassifyView$8.run(ClassifyView.java:1015) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
ClassifyView 中
894行
private void fixHeight(@nonnull int[] ints) {
// if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
ints[1] -= mStatusBarHeight;
// }
}
这块应该是>号吧?<号导致长按item之后 绘制的view位置偏下。
感谢作者写的项目。
是否支持类似ios launcher那样分页拖动的呀?有无计划添加这个功能?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.