Giter Site home page Giter Site logo

classifyview's Issues

为什么不用DragShadowBuilder绘制拖动的view呢?

想问下为什么不用DragShadowBuilder绘制拖动的View而是用操作dragview位移来自己实现拖动效果呢,是有什么坑存在吗?
我想要实现mainRecyclerview上长按拖动也可以拖动到recyclerview视图外的效果,但是pressedView.startDrag()以后触摸事件就被上面层级的view给拦截了,想在RecyclerView.OnItemTouchListener.onTouchEvent里操作dragview位移这条路走不通。感觉用DragShadowBuilder自己绘制的View可以达到想要的效果,不太清楚作者为什么抛弃了这种做法?

崩溃

你好,我运行在基本效果中长按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)

移动时图标不可见

你好,我在用activity中使用你这个控件时(不是在fragment中),仿照文件夹的例子,按最基本的模式进行引用,其他都正常,但有一个问题:当长按某个内容图标后,这个图标就消失了,并没有出现一个浮在最上层的图标,称动时也没有,等移到放开后该图标才出现,这可能是什么原因,可以怎么解决?急!

指正一个问题。ClassifyView

ClassifyView 中
894行
private void fixHeight(@nonnull int[] ints) {
// if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
ints[1] -= mStatusBarHeight;
// }
}

这块应该是>号吧?<号导致长按item之后 绘制的view位置偏下。
感谢作者写的项目。

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.