-
Notifications
You must be signed in to change notification settings - Fork 289
Drag And Drop in ViewPager #4
Comments
Hi! Yes, you can use it with ViewPager. Only one limitation – DynamicGridView must not be in edit mode when you need to slide pages via ViewPager. You can use startEditMode() and stopEditMode() to change DynamicGridView state. For example: start edit mode on item long click and finish immediately after item dropped
Or you can use action bar menu to start or stop edit mode. |
Thank you for the response, I've tried the same but Drag n Drop isn't working. v.setOnLongClickListener(new OnLongClickListener() {
The items in Gridview start shaking but I'm unable to drag those items. Pager gets all the motion events so, I tried to disable paging while in startEditMode() but still I'm unable to drag the items. public class CustomViewPager extends ViewPager {
} |
Hi.
|
Hi Askerov, Thanks man, now it's working. Thank you for your help and support, you are the best :) |
HI, |
@mani051990 could you finish the effect? drag between pages? thank you |
Hi,
I love DynamicGridView, It works like charm. But there is one issue, It doesn't work if we implement it in ViewPager. Is there a way I could use this code in ViewPager? Waiting for your fruitful response.
Thank you
The text was updated successfully, but these errors were encountered: