-
Star
(188)
You must be signed in to star a gist -
Fork
(78)
You must be signed in to fork a gist
-
-
Save romannurik/2980593 to your computer and use it in GitHub Desktop.
Moved to | |
https://github.com/romannurik/android-swipetodismiss |
Hello! It's very good job. I have a small quastion: How can I disable swipe to one side (for example swipe to left)?
It is very good job.
So I was trying to use this little library for my list and when I put a list inside a PagerViewer... the swipe won't work, everytime I tried, it just swipe between the pages on the PagerViewer, is there a way to distinguish between them? can you swipe the list item horizontally without the PagerViewer intercepts the swipe and swipe its pages?
Has anyone found a solution for a problem tasomaniac mentioned (SwipeToDismiss and CursorLoader) ?
@Yougin I haven't tried but this can solve it. You can disable automatic loading of the CursorLoader
using a custom CursorLoader
. Chris Banes does it in his open-source Photup
application. https://github.com/chrisbanes/photup/blob/master/client/src/uk/co/senab/photup/util/PhotupCursorLoader.java
You might want to make a temporary cursor that manually hides the dismissed indices while the updated cursor loads. Something like this https://gist.github.com/cornwe19/6be23fde488c577691d3 might accomplish what you need.
Very good library , i am using it.
Please help me ,How to handle left and right swipe?
Thanks In Advance
I have a problem with
CursorLoaders
. When you use this with a regularArrayAdapter
, you can remove all the dismissed items and then callnotifyDataSetChanged()
w/o any problem. When I useSimpleCursorAdapter
withCursorLoader
andLoaderManager
, it automatically detects the changes in the database and update the UI whenever a change occurs. So the result it that there are items going out and coming again and going out again. How can I solve this? Has anyone experienced such problem?