Android :: Drag And Drop Functionality / Custom Drawing
Apr 8, 2010
I am working on something that needed custom drag-and-drop functionality, so I have been subclassing View, doing a bunch of math in response to touch events, and then rendering everything manually through code on the canvas in onDraw. Now, the more functionality I add, the more the code is growing out of control and I find myself writing a ton more code than I would expect to write in a high level environment like Android.
Is this how it's done, or am I missing something? If I'm not doing anything fancy in the UI, the framework handles the majority of my interactions. Built-in controls handle the touches and drags, and my code is pretty much limited to business logic and data. Is there a way to leverage the power of some of the UI controls and things like animations while also doing some of it manually in the onDraw canvas? Is there an accepted standard of when to use one or the other (if indeed the two approaches can be mixed)?
View 2 Replies
Dec 18, 2009
is there any drag and drop support in android? Couldn't find any
View 4 Replies
View Related
Jan 28, 2010
I have to drag and drop items of ListView, which typically have an image and text. How can I implement this.
View 3 Replies
View Related
Dec 29, 2009
Is it possible to drag and drop table rows in android? Say the user holds down on a table row, the row would would become transparent and be draggable around the screen & then depending where the user dropped it, the table row would be inserted there.
View 2 Replies
View Related
Jun 13, 2009
I noticed that AbsoluteLayout is deprecated in the latest SDK. AbsoluteLayout is an important piece to implementing drag and drop. If it disappears in a later release, what will be the solution to implement drag and drop?
View 2 Replies
View Related
Nov 8, 2010
I want to write an app for my thesis that it will have some items/icons and i will drag'n'drop them in a box and then it will make a query in a database and return the result..but i can't find information on how to combine the drag'n'drop with the box...
View 2 Replies
View Related
Jun 15, 2009
I want to know how to manual sort with ListView by using drag and drop? for example, the user can drag an item from position 2 to position 1. Someone said there is a play list activity that can support it in music application. But I cannot find it in my SDK 1.0. Who can provide some suggestion? If there is a demo, it is more better.
View 3 Replies
View Related
Jul 5, 2010
I have a table-top style game board consisting of 10x10 squares. Each square is a PNG image. On top of these squares I want to place tiles which can be drag and dropped on top of the squares.
What would be my best approach concerning Views?
Is it possible to have two layers where layer one is a grid of ImageView's which represents the board. Would it then be possible to let the tile be an ImageView also which could be "stacked" on top of the ImageView's which represents the board?
View 1 Replies
View Related
Oct 9, 2010
I am working on a MapView app in Android. I have three markers that I want to be able to use the Google Map API getlocation-function on, later on. In order to try it out I would like to move the marker with a drag and drop-function, and then check the location.
Anyone who has gotten a drag and drop to work on an android marker, or know a way to start figuring it out?
View 1 Replies
View Related
Jan 9, 2010
I just recently got an android phone and found that the drag and drop on my site doesn't work! I understand why it wouldn't, but has anyone found a solution to this? I'm using JQuery to implement the D & D...
View 1 Replies
View Related
Oct 9, 2010
I am designing an application which requires Drag&Drop functionality to transfer items from one list to another.
Is there any way to drop item into another list, as i have seen applications to drag and drop items in the same list(Reordering the list)?
View 1 Replies
View Related
Jun 11, 2010
I have seen posts on using handbreak to convert to the correct file size and such but i was trying to just drag and drop avi files to the evo but they dont seem to be showing up once i disconnect from the pc. Is there a way to just drag and drop movies onto the evo or do i have to convert each one i want to put on the phone?
I am converting a avi right now through handbreak but it is taking forever! With my moment i could drag and drop i figured with this phone i could do the same but i guess not
Before i have to take the train to work i like to just throw a movie on the phone and watch it but it doesnt seem like ill be able to do this with the evo cause ill have to convert them all and that will take too long....
can anyone point me in the right direction?
View 6 Replies
View Related
Jul 22, 2010
Drag and Drop File Sync with Awesome Drop.Its an Android application that lets you drag and drop files right into your browser which then copies files to your Android device. No account is required just open the app, navigate to the specified webpage, enter the access code into your device, drop in your files and voila, the files are synched to your phone.Awesome Drop uses HTML5 features of web browsers like FireFox 3.6, Chrome 5 & Safari 5 to copy files to your device and supports music, photos and document files.
View 1 Replies
View Related
Sep 1, 2010
I'm a new Captivate owner and I was wondering if there is a simple way to sync music files from your itunes to your Captivate? I was looking for something that I can drag and drop the files from itunes to my phone? I'm just looking for a real easy way to add music to my phone.
View 3 Replies
View Related
Oct 23, 2009
well i am gettin friendly with my Hero so i need more info.
1 - the default storage for applications after instal is - SD card or internal Memory?
2 - how much internal memory you need in the phone for a proper funcionality.
3 - how to sync photos - is it drag and drop like the mp3 ?
4 - how many proccesses you haw on your phone. ( is killink apps dengerous for the phone)?
5 - how can you see where the contacts are stored and can you move them.?
View 5 Replies
View Related
May 24, 2014
I am looking for an app that allows me to use drag and drop to reorder tasks and also synchronizes with Microsoft Exchange.
Many of the great task apps (Any.Do, Wunderlist) have drag and drop capability but do not sync with Exchange. Those that do sync with exchange don't have drag and drop functionality.
I have tried Touchdown, Tasks For Microsoft Exchange, Tasks and Notes for MS Exchange, TaskSync for Exchange, Any.Do, Wunderlist, and Remember the Milk.
View 1 Replies
View Related
Aug 22, 2010
For those of you who have been frustrated by the inability to rearrange the icons in your app dock, worry no more. With the latest ADW upgrade you can drag and drop apps on your dock bar in any order you like.
View 6 Replies
View Related
Nov 16, 2009
I connect the usb to charge, but I cant drag and drop files like I did with my Instinct through Windows. Currently, I have to take the mini sd card out of the phone and put that into my computer to connect that way to add music, etc. Anyone know anything about how to drag and drop directly when connected with the usb?
View 5 Replies
View Related
Apr 19, 2014
I connected my LGG2 phone to the PC and just copied over folders that contain mp3's in the phone music folder if I remember correctly and the music played fine. So am I suppose to use software of sorts though ?What method do most people use to get music on their phone
View 6 Replies
View Related
Jun 14, 2010
Does anyone know how to drag and drop items on a web page to re arrange icons?Press my finger down on the item like you do to move our widgets and all I get is copy, magnify and paste commands.
View 6 Replies
View Related
Jan 26, 2014
I am running a CM11 Nightly on my jfltevzw. I am trying to update to a new nightly by dragging and dropping it onto my phone, the way I always do. However for some reason when I try to do it now, I get an error message saying "Cannot copy item: This device has either stopped responding or has been disconnected." even though it shows up on my explorer. It was working fine like a day ago. I have rebooted my computer and everything, but it just won't work.
View 1 Replies
View Related
Nov 11, 2009
I have my Droid connected to my computer via the USB that came in the box. The phone recognizes the cable, chimes, and has the USB icon on the screen. But the computer doesn't recognize the phone at all. It could be a problem with my computer, but I'm checking here in case I just can't find the option on the phone to "allow USB connection" or something.
View 8 Replies
View Related
Sep 17, 2009
I have a problem statement, and here it is: My requirement is: There are a number of images shown on the screen. I want to allow the user to drag and drop any of the images to anyother image. Based on which image is dragged and on which is it dropped, I need to do something specific. So, I need to find a way so that I can get my source view and my target view.To understand this in a better way, consider a practical scenario. In the File Explorer of Windows, we can drag and drop items from the left pane showing the directory tree to any of the folders shown in the right pane.If anyone of you ever faced a similar scenario, please let me know because I could not find a direct support to such a thing (Drag and Drop) in the platform, so may be I need to find an innovative solution to it.
View 4 Replies
View Related
Nov 2, 2010
I have used Lambrospowers (XDA Forum) Rosie patch to enable drag n drop when in helicopter (leap) view. It works flawlessly on my rooted stock Froyo Desire. If anyone is interested, I will provide more info on how to install the patch and where to d/l it from.My desire is rooted but S-ON and odexed. It only works on rooted phones.I love this feature that only comes on DHD & DZ as part of the new sense 2.0 ui as standard.
View 2 Replies
View Related
Jul 6, 2010
I have a few doubts about view flipper I am using viewflipper to go to another view using scroll_left animation. i have kept 2 linearlayouts inside the ViewFlipper Code...
View 2 Replies
View Related
Sep 26, 2010
I'm trying to draw a custom border by drawing a custom view. Here is a sample of one side of the border: Code...
View 1 Replies
View Related
Aug 10, 2010
I created a custom OverlayItem class so that I could essentially have one kind of OverlayItem whose Drawable marker would set itself depending on the state of some data that I pass into it. I have attempted to accomplish this by, on my first attempt, utilizing the setMarker method within the OverlayItem class. Once that did not work I attempt to override the getMarker method and have it return the appropriate marker to represent the data. Both of these attempts ended with nothing being drawn on the map...however if they are commented out the markers draw just fine (except they of course use the default marker, which isn't what I want). Here is my code for my custom OverlayItem class (the commented out methods I have tried and they have not worked):
private class MyOverlayItem extends OverlayItem {
private Context mContext; private MyData mData;
public MyOverlayItem(GeoPoint point, MyData data, Context context) {
super(point, data.getWhat(), data.getWhere()); this.mContext = context; this.mData = data;
/*if(data.getTemp() > 200) this.setMarker(res.getDrawable(R.drawable.icon_data_hot_l));
else if(data.getTemp() > 100) this.setMarker(res.getDrawable(R.drawable.icon_data_neutral_l));
else this.setMarker(res.getDrawable(R.drawable.icon_data_frozen_l));*/ }
/*@Override public Drawable getMarker(int stateBitset) {
Resources res = this.mContext.getResources(); if(this.mData.getTemp() > 200)
return res.getDrawable(R.drawable.icon_data_hot_l); else if(this.mData.getTemp() > 100)
return res.getDrawable(R.drawable.icon_data_neutral_l);
return res.getDrawable(R.drawable.icon_data_frozen_l);
}*/ }
Is there a way to do what I am attempting to do or do I need to make a unique OverlayItem class corresponding to each state of my data?
View 3 Replies
View Related
Jun 23, 2009
I would like to draw custom images within a ListView, for this I have created a ListView and an ArrayAdapter object. I have specified that each element of the ListView will be an ImageView which is specified by an XML layout file. Now, I would like to draw a custom graphic in each cell depending upon certain paramters.
View 3 Replies
View Related
Jul 6, 2009
I have made a custom widget, very similar to JTable in Swing. It is not editable, and all data is replaced at once, allowing easy checking for the widest item in each column & custom col sizing at replace time. It is a subclass of LinearLayout, filled with re-usable TableRow Objects, sub-classed directly from View.
TableRow is both Clickable, focusable, & focusable In Touch Mode. TableRow overrides onDraw(Canvas), calling super. It draws the first column in Black with Lt gray underneath. If the TableRow isFocused () , then a filled rectangle is drawn, before the rest of the cols (left or right justified based on data type), and borders. Where do I get the color, orange, to draw the filled rectangle indicating focus? android.R.drawable.list_selector_background seems to be a pointer, value 17301602, not an actual color. Placing any real Color in my code draws things fine. Is this 17301602 transparent or something? Am I doing this wrong, or do I just need to know how to fine the orange?
View 2 Replies
View Related
Feb 9, 2010
I have a linear layout that I have overridden because I want to > dynamically add other views to it. I am trying to add some textviews > to it and I call addViewToLayout in the onLayout method. Can't you just add your views to the layout using addView()? I have one custom LinearLayout and this is what I do and it works fine. No need to override onLayout() or onDraw(). Maybe try that
View 10 Replies
View Related