drag-and-drop

adding items to expandable list view by drag and drop android

你说的曾经没有我的故事 提交于 2019-12-11 05:18:35
问题 how to add items to the expandable list by drag and drop ?e.g If you drag and drop some text it should be added in expandable list. 回答1: You would need to draw a custom component see this page for more information: http://developer.android.com/guide/topics/ui/custom-components.html. You would need to override the draw method and draw your own list view as well as where ever your dragging your items from. This is a complicated task and may seem daunting but I haven't really seen anyone do a

html5, drag images and drop into right side of Div,images concatenate right-to-left

情到浓时终转凉″ 提交于 2019-12-11 05:09:56
问题 I want images concatenate right-to-left manner. in following code when i put images into another Div, they are right aligned (dropped image always come to most right).however not in the manner I want.the new image should always come on the left of previous image. please help! owww yes ,one should imagine in "images" folder there are 1-9 numbers as .png file. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=

jQuery drag-and-drop DIV selection with images and text

拈花ヽ惹草 提交于 2019-12-11 05:07:49
问题 I'm using the jQuery tableDnD plugin to make a drag-and-drop list out of a table displaying a list of images for the user to rearrange. The plugin uses an ID on the tag of the formatting table to rearrange the cells. When I drag and drop specifically clicking on a spot inside the table cell with no images/content, it works fine. However, when I click on the image (or inside a div containing text) withgin the table cell and try to drag+drop, the text/image gets selected and the rearrange

uploading folders (using FileSystem API)

别等时光非礼了梦想. 提交于 2019-12-11 05:07:10
问题 I'm trying to upload folders using the FileSystem API. dropzone.ondrop = function(e) { e.preventDefault(); let items=e.dataTransfer.items; let formdata=new FormData(); function scanFiles(item){ console.log("In scanFiles") if (item.isFile) { console.log("Typecasting..."); item.file(function(file) { console.log(file); formdata.append('directory',file); }); } else if (item.isDirectory) { console.log("Directory...") let directoryReader = item.createReader(); directoryReader.readEntries(function

Drag and drop between two kendo grids

纵饮孤独 提交于 2019-12-11 05:07:01
问题 Drag and drop between two grids Problem with saving <div id="gridexample1" style="width:800px"> <div id="grid1"></div> <div id="gridexample2" style="width:800px"> <div id="grid2"></div> $(document).ready(function () { var dataSource1 = new kendo.data.DataSource({ data: [ { "ID": 1, "Name": "Roosetty" }, { "ID": 2, "Name": "timcook" }, { "ID": 3, "Name": "Sam" }, ], pageSize: 5 }); var dataSource2 = new kendo.data.DataSource({ data: [ { "ID": 4, "Name": "steve" }, { "ID": 5, "Name": "mark" },

Drag and Drop from Outlook Window to Application .EXE file (or Icon) in .Net

我怕爱的太早我们不能终老 提交于 2019-12-11 05:06:00
问题 This has been asked before, but with the methods I have seen, I cannot get what I want to happen. Currently, I have a Windows Form that if I run the .EXE (and bring up the form itself), I can drop Emails from outlook into it no problem. However, what I am looking for is to have this functionality when a user drops the message directly from Outlook to the Icon on the .EXE file. I can do this fine if I save the file locally and drop it onto the icon, but straight from Outlook, I get a circle

DnD - Why is dragged label displayed below other components?

六眼飞鱼酱① 提交于 2019-12-11 04:54:45
问题 I've written a basic DnD program that has four JLabels in a row. I've noticed that when I drag a label to the left, it is displayed below the next label. However, when I drag the label to the right, it is displayed above the next label. The labels are added in order, left to right. So the dragged label is being displayed below other labels that were added before the dragged label, and displayed above other labels that were added after the dragged label. Can anyone explain why this happens?

Snap PictureBox to Buttons after Drag and Drop

ぃ、小莉子 提交于 2019-12-11 04:34:39
问题 I'm making a Battleship game, and I'm using buttons as the grid(playerboard). I'm using a picture box as the ship, and I'm trying to make it so that the picturebox snaps to the buttons that it is colliding with. I have already done the drag and drop, and collision part, but I'm struggling with the snapping to buttons part. The picture box is the size of two buttons. I tried to align the picturebox with the buttons, by using picturebox.left = button.left, but it chooses the wrong button of the

Is there any way to create an outline around an element's margins besides creating a wrapping element?

懵懂的女人 提交于 2019-12-11 04:25:46
问题 I wish to create an outline around an element which has a margin for drag-and-drop purposes, so that the user can visually see that the cursor is in the centre of the space that will be taken up on drop. As far as I can see, the only way to achieve this is by creating a wrapper div with a border (or outline) for the duration of the drag, and focusing the drag on the wrapper. Is there a more efficient way? 来源: https://stackoverflow.com/questions/41502211/is-there-any-way-to-create-an-outline

Javascript File Drop

此生再无相见时 提交于 2019-12-11 04:06:36
问题 Is there a way to get the absolute file path of a drop event using Javascript, or should I use another technology? If so, I can do the same with folders? 回答1: Javascript in a web browser is not going to give you absolute file paths from client machines. Also see this about HTML5 drag-and-drop: http://www.quirksmode.org/blog/archives/2009/09/the_html5_drag.html 来源: https://stackoverflow.com/questions/3025841/javascript-file-drop