Closed njamal816 closed 3 years ago
I cant really see any errors by just looking at the code like this. If you want me to help you debug it you will need to send me a test project with the issue so I can run and debug it myself.
Otherwise I recommend to put breakpoints at onItemDragStarted and canDragItemAtPosition to make sure the drag is allowed and that it is starting.
Hello Magnus,
Thank you for your reply. I am sorry for the delay. I am checking with the breakpoints. If that is not working, I will share the whole project over the email so that you can debug them.
Thank you once again.
@woxblom Were you able to check the issue for the files I have shared? Thank you.
You never sent me the project as far as I can see? I can not check the files you shared here as I wrote before.
Hello @woxblom , Thank you for your email. Its been couple of weeks since i sent you the details over the email. I have followed up as well. I have attached the screenshot below of the email.
Checked my mail now and unfortunately it was caught in the spam filter and ended up in the junk folder so I missed it. I will take a look at it as soon as I can. Right now I am on vacation but I will see if I can squeeze in some time.
Hey, sorry but the project provided is far to big and complex for me to get into, try to make smaller test project and implement the drag and drop there first and the move that code to the real project. Check the sample apps to see how it is done.
Hai. Thank you for this wonderful library. I have implement this with my project. However, I am unable to drag or even move an item from the grid. Can you please check the code and let me know what is the issue with code? Thank you.
`public class GridModeLayoutActivity extends BaseMainActivity implements DragItemCallback, TutorialManager.OnTutorialListener { public static final String SHOW_RATE_US_KEY = "SHOW_RATE_US_KEY"; / access modifiers changed from: private / public ItemAdapter adapter; AppBarLayout appbar; ImageView btnCamera; ImageView btnGallery; ImageView btnSave; ImageView btnShare; TextView docName; private int gridOpened = 0; View gridRoot; / access modifiers changed from: private / public ArrayList m_arrData;
private boolean m_bCanEdit;
DragListView m_dragView;
private String m_strName;
/ access modifiers changed from: private /
public String m_strParent;
// Analytics.get().logTutorShare(targetHit); } else if (tutorialInfo.layoutId == R.layout.tutorial_grid_add) { SharedPrefsUtils.setGridOpened(this, 2); // Analytics.get().logTutorAddMore(targetHit); } }
// ScanApplication.adsManager.show(false); } }
// Analytics.get().logGridScreen(); }
}`