drag-and-drop

How to drag a imageview in android studio? [duplicate]

孤街浪徒 提交于 2019-12-25 07:37:33
问题 This question already has answers here : Android drag and drop issue not displaying (2 answers) Closed 3 years ago . I'm using this tutorial to create a imageview and drag it over the screen http://www.tutorialspoint.com/android/android_drag_and_drop.htm but when i drag the image in my emulator and i drop it disappears! how can i fix that? here is my layout file <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android

Mini-Filter intercept drag & drop file(s) to disk?

依然范特西╮ 提交于 2019-12-25 06:58:02
问题 I am developing a mini-filter to intercept files and get the name of files which are dragged & dropped to a specific disk and get the file names. If I drag & drop a file, I can get this file name and intercept it successfully (That's mean this file is not created on disk). If I drag & drop multiple files, I can only get the first file name and other is not. But when I open the disk, I don't see any file here (That's mean Mini-Filter intercept them successfully). So I can not get the file

Create EditText by drag drop Android issue

落花浮王杯 提交于 2019-12-25 06:48:05
问题 I have three layouts: top, left and right. On top layout, I have EditText icon, when I drag it to left layout, will create an EditText in left layout. With EditText drop in left layout or right layout, I can move it from left to right layout (or right to left, can't move from left/right to top) My problem: 1.When I create an EditText by drag in left layout, then I create an EditText by drag in left layout, it work's well, I can see all drag drop log action. But if I create another EditText in

ANDROID ANDENGINE — drag and drop stacked sprites

亡梦爱人 提交于 2019-12-25 06:25:49
问题 in my app I have some sprites that i need to drag and drop over the display. i defined the BitmapTextureAtlas and the corresponding TextureRegion, and then i'have created the draggable sprite from those data. Some sprites must be set in the same position and they have to be stacked. everything works fine except that the sprites seams to be stacked but when i touch an drag away one, instead of dragging the first on the top, it makes me drag away always the first on the bottom. how can i fix it

HTML5 Drag & Drop : How to remove class added in dragenter in all parent when drop event executed (so dragleave is not executed for removing it)

那年仲夏 提交于 2019-12-25 06:00:09
问题 I Have div included in another parent div that are both allowed for "drop". In the example a class named "red" is added to all droppable object in dragenter event. So if I enter the mouse durring drag in child element both child and parent will get "red" class. When I abort the drag&drop or if I leave elements during operation, the dragleave event will remove the added "red" class. The problem is when I drop the element into child there are two options : Option 1 : event.stopPropagation() is

How can I specify which TreeViewItem Style/Template for a TreeViewItem Generated from HierarchicalDataTemplate?

我只是一个虾纸丫 提交于 2019-12-25 04:47:17
问题 The Situation: I have two classes that are represented in a TreeView. DiskSpec and DiskSet. DiskSpec can exist by itself, or it can be a child of DiskSet. I am working on enabling DragDrop functionality so that the user can drag a DiskSpec from the DiskSpec node onto a DiskSet to add it to that DiskSet. Now all is working except for one thing. My DragDropHelper class needs to specify in an ItemsPresenter (or related class) that that control is a drag source or a drop target. My TreeView is

Check time after a mousebuttondown before the mousebuttonup

狂风中的少年 提交于 2019-12-25 04:31:54
问题 I think that must be only a little problem, but I can't get a clear thought on that. Someone an idea? I have some borders on a canvas (filled with images) and i want to click the border (i do this with the OnMouseLeftButtonDown) where the border gets red (so the user knows for sure which object he had clicked) and then, after 1 or 2 seconds, when the mousebutton is still pushed down, a drag'n'drop should start. At first I had the borders inside buttons, but the clickevent seems to conflict

How to save a web-application state dynamically?

你说的曾经没有我的故事 提交于 2019-12-25 04:15:24
问题 I would like to create a web application where a user can drag and drop images and text onto a div or similar container. Then, when the user clicks a save button, the application would be able to save the content of the dropped items, as well as the positional information for those items. Ultimately the user should be able to come back, open then application, and have the images and text back in the exact same places as when they were saved. If anyone knows a methodology or framework that

Control Points in Canvas shape

倖福魔咒の 提交于 2019-12-25 03:19:26
问题 I have made canvas Shapes(squares) in kinetic js having 4 control points on each of their vertices.A user can click and drag these control points and distort the shape any way he/she pleases. I also tried adding control points in the mid-point of each line by adding additional anchors and plugging them into the Bezier Curve..The js fiddle is http://jsfiddle.net/Lucy1/opsy1pn9/4/ The corresponding JS code is var room = new Kinetic.Shape({ x: 0, y: 0, width: w, height: h, stroke: "blue", fill:

How to move an drag and drop item to a certain position, when located over canvas?

╄→гoц情女王★ 提交于 2019-12-25 03:14:06
问题 I am working on a Tablet-environment with draggable objects. The drag & drop works, it is even possible to drag several objects at once, when implemented. References are : Reference 1 & Reference 2 This is how the current version of my code looks like: <!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <meta name='viewport' content='width=50px, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,' /> <!-- Refernces: * https://wiki.selfhtml.org/wiki/JavaScript/Tutorials/Drag_and