drag-and-drop

Drag View and Drop it on RecyclerView item Android

岁酱吖の 提交于 2019-12-08 15:45:32
问题 I am developing an android application that has a screen contains the following: Recycler view that contains categories as the below figure Separate view at the botton and the user should able to drag it on a RecyclerView item, and after drop the user will show changing at the RecyclerView item data (for example items count at the category) I need some help about how to implement this process to drag View into Recycler item, the following figure explains exactly what I want to do but have no

Detect file type on dragenter cross browser solution

£可爱£侵袭症+ 提交于 2019-12-08 15:36:24
问题 I'm searching for a cross browser solution for this. In advance i tell you that i don't want to know if is a file only, because i found solutions for that. I want to know if the file is an audio, image or video basically. In Chrome when you fire the dragenter event you can get that data from here: ev.originalEvent.dataTransfer.items[0].type; But in Firefox, Safari and IE the "items" spec hasn't been applyed yet: https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items In those

Jquery dragstart and dragend events in Jquery UI

陌路散爱 提交于 2019-12-08 15:31:43
问题 Is there somehow a way to access these two events? Do the even exsist? I have to set transfer data on dragStart and dragEnd to an event object. 回答1: Check: Drag start: http://api.jqueryui.com/draggable/#event-start Drag stop: http://api.jqueryui.com/draggable/#event-stop You are able to access current event in both function calls. 来源: https://stackoverflow.com/questions/15342172/jquery-dragstart-and-dragend-events-in-jquery-ui

Order elements of a RecyclerView via drag and drop

六月ゝ 毕业季﹏ 提交于 2019-12-08 14:58:40
问题 I am developing an application for Android which is a RecyclerView containing LinearLayout through a list of custom items. How can you order these items using drag and drop? 回答1: Now it's very easy in Android. No need to use any third party libraries. Android now supports RecycleView drag and drop out of the box, please use the below link for details: Medium | Drag and Swipe with RecyclerView 来源: https://stackoverflow.com/questions/30300356/order-elements-of-a-recyclerview-via-drag-and-drop

To MVVM or not to MVVM that is the question

蹲街弑〆低调 提交于 2019-12-08 14:42:24
问题 I am rewriting my windows forms based application and I am going to use WPF. The application relies heavily on drag and drop techniques, in a very graphically environment. The uses "Design" reports etc. by dragging elements onto a grid, moving them, right click setting properies etc. all of which is saved to a database. Also control program flow by drawing flow charts, with routing and desicion making, all drawn on the form, and again save to a database. Does MVVM lend itself to this kind of

VBA - listview sort by drag and drop

时间秒杀一切 提交于 2019-12-08 14:39:41
问题 I'm trying to implement drag and drop sorting in listview on my vba form. I found many solutions for vb forms. But they doesn't work in vba. I also found one article for vba and it almost works. But problem is that when I drag item my cursor doesn't highlight other items when mouseover. It only highlight 1st line when I drag item below last line. Here is 2 screenshots for better explanation. And here is code: Public Sub LVDragDropSingle(ByRef lvList As ListView, ByVal x As Single, ByVal y As

JavaFX get drag && drop target folder after drop has been done

谁说我不能喝 提交于 2019-12-08 14:32:29
问题 Question on Java Oracle Community (https://community.oracle.com/thread/3934986) The Problem: I have set the code below for a Button which it's full name represents a file path.So when the Button is dragged to a folder or desktop(let's say in Windows 😛) it is copied by user's Operating System. I want to get the target folder on which the drop has been done. Code: button.setOnDragDetected(event -> { /* allow copy transfer mode */ Dragboard db = startDragAndDrop(TransferMode.COPY,TransferMode

How to drag-and-drop on custom Swing components

折月煮酒 提交于 2019-12-08 14:10:32
How can I implement drag and drop on custom components, e.g. my own JPanel subclasses? What I need is full Swing-like drag and drop support. With TransferHandlers , DropTargetListeners etc. So the trivial mousePressed() and mouseReleased() is not what I'm looking for. Perhaps Lesson: Drag and Drop and Data Transfer . 来源: https://stackoverflow.com/questions/2990634/how-to-drag-and-drop-on-custom-swing-components

Angular Material 7 Drag and Drop x and y coordinates

狂风中的少年 提交于 2019-12-08 14:02:30
I have a container with an element inside it. I want to be able to drag the element to another location inside the container and see the new x and y coordinates (where x=0 and y=0 is the top left corner of the container). I have a basic stackblitz set up at https://stackblitz.com/edit/material-6-mjrhg1 , but it won't show the entire event object in the console ("object too large"). In my actual application, I can look through the entire event object, but I can't find any properties describing the new x and y locations. The basic setup is this: <div style="height: 200px; width=200px; background

Drag-and-drop accordion panels? (ASP.Net)

為{幸葍}努か 提交于 2019-12-08 13:39:31
I have a set of accordion panes(dynamically created) contained in an Accordion control. Basically, what I am wanting is for the user to be capable of dragging these accordion panels so that instead of A pane B pane C pane They can drag and drop it to be something like B pane A pane C pane Or whatever. Also, more importantly, I would need to be able to detect that they have changed the order. Would there be a way to have it when they "drop" the pane that it can update a hidden field or something? I don't need a postback on every single drag and drop, but rather I want for when they hit a save