thesurix / gesture-recycler Goto Github PK
View Code? Open in Web Editor NEWThis library provides swipe & drag and drop support for RecyclerView.
License: Other
This library provides swipe & drag and drop support for RecyclerView.
License: Other
Just wanted to know if there is away I can swipe to the left and nor right?
After setting mAdapter.setData(new ArrayList<>()) - empty ArrayList for the first time, any item I insert then doesn't appear in RecyclerView. But if I use mAdapter.setData( [new ArrayList with item(s)] ), all items inserted then appear normally. How can I fix this?
how to set a vertical scrollbar for header and footer and two different backgroundColor
Thanks for the lib,
btw, i have a problem, it's happened when i press back, and the activity destroyed then
Caused by: java.lang.IllegalStateException: Observer com.thesurix.gesturerecycler.EmptyViewDataObserver@1e8b038a was not registered.
at android.database.Observable.unregisterObserver(Observable.java:69)
at android.support.v7.widget.RecyclerView$Adapter.unregisterAdapterDataObserver(RecyclerView.java:5676)
at com.thesurix.gesturerecycler.GestureAdapter$1.onViewDetachedFromWindow(GestureAdapter.java:82)
at android.view.View.dispatchDetachedFromWindow(View.java:13633)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2966)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2963)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2963)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2963)
at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4296)
at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4269)
at android.view.ViewGroup.removeView(ViewGroup.java:4201)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1165)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
at android.support.v4.app.FragmentManagerImpl.dispatchDestroy(FragmentManager.java:2083)
at android.support.v4.app.FragmentController.dispatchDestroy(FragmentController.java:244)
at android.support.v4.app.FragmentActivity.onDestroy(FragmentActivity.java:369)
at android.support.v7.app.AppCompatActivity.onDestroy(AppCompatActivity.java:199)
at android.app.Activity.performDestroy(Activity.java:6156)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1147)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3866)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3897)
at android.app.ActivityThread.access$1400(ActivityThread.java:167)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5546)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759) ```
How come?
Can we stop the drag at some point and when the user releases the dragging, there will be a button, and then, after clicking on the button, the action invokes?
it require target support Library version of 27.0.2, that is my nightmare when i import this project in my product,shit.
Hey there, first of all, amazing work with this library.
I may be overlooking something in the examples, but is there any way to get the cards to only move within header objects (like locking the MonthHeaders from being surpassed by any of the dragging cards)?
For example:
FIRST QUARTER
Cards 1-3 will only move within First Quarter and Second Quarter, not overtake the position of SECOND QUARTER when scrolled that far?
I have few Edittexts and bellow that recylcerview. All these components are under Scrollview.
If I try to drag recyclerview item down, recyclerview list is not scrolling to drop an item.
If I remove Scrollview placed then this works fine.
Does this library support GridLayoutManager instead of LinearLayoutManager?
Here we are rearranging the item's position , i want to achieve folder functionality with that . if we drag item onto another , I want to generate folder for that two items .. is it possible with this lib ?
Do you plan to add this feature to your lib otherwise could you give an advise how to add this by myself?
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.