On Thu, May 3, 2012 at 10:30 AM, Narendra Singh Rathore
nsr.curi...@gmail.com wrote:
Hi all,
what I am doing is just dragging items from grid view and dropping them
to gallery view one by one.
All is working fine in this case.
But now, I need that initially, when my gallery is empty, *I
, there is a set
of classes to support drag drop.
Date: Mon, 14 Mar 2011 19:27:42 -0700
Subject: [android-developers] Re: drag and drop view in android?
From: lancaster.dambust...@gmail.com
To: android-developers@googlegroups.com
This probably won't help most people, but Honeycomb
You can referer to android source/packages/apps/Launcher, there is a set of
classes to support drag drop.
Date: Mon, 14 Mar 2011 19:27:42 -0700
Subject: [android-developers] Re: drag and drop view in android?
From: lancaster.dambust...@gmail.com
To: android-developers@googlegroups.com
drag drop.
Date: Mon, 14 Mar 2011 19:27:42 -0700
Subject: [android-developers] Re: drag and drop view in android?
From: lancaster.dambust...@gmail.com
To: android-developers@googlegroups.com
This probably won't help most people, but Honeycomb includes a drag
and drop framework
This probably won't help most people, but Honeycomb includes a drag
and drop framework.
On Mar 14, 5:48 am, TreKing treking...@gmail.com wrote:
On Mon, Mar 14, 2011 at 5:59 AM, Hitendrasinh Gohil
hitendra.virtuei...@gmail.com wrote:
i want reordering of the list row by drag and drop.
That's great and all TreKing, don't see what Google has to do with any
of this though, and you can't expect the OP to read the results for
himself. Can you please provide an automated search of this mailing
list for 'drag and drop' and summarise, fast-immediately-now.
Thanks
On Mar 14, 11:48 pm,
Can any one help in that?
I have been looking into drag and drop too. I had found a post that
pointed me at the Google Launcher code. That's a good thing to study.
I built a few simple examples and wrote them up on my blog. See
http://blahti.wordpress.com/2011/02/10/moving-views-part-3/.
--
Maybe this will help:
http://code.google.com/p/mobile-anarchy-widgets/wiki/Drag_and_Drop
Regards,
Oded
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe
Thank you Oded, and Treking. You saved my time [?].
At least I got where to start.
I really appreciate your help.
Will soon update you with result.
--
Sunil Lakhiyani
+1 215 584 7289
On Thu, Feb 17, 2011 at 1:20 AM, Oded O. olb...@gmail.com wrote:
Maybe this will help:
Okay I found a solution which maps touch events to mouse events and seems to
do the trick. In case anyone is interested, here is the link:
http://ross.posterous.com/2008/08/19/iphone-touch-events-in-javascript/
--
You received this message because you are subscribed to the Google
Groups
I like those links too. Good Stuff.
On Oct 31, 7:55 pm, Mathias Lin m...@mathiaslin.com wrote:
Thanks for sharing.
Can also look
athttp://stackoverflow.com/questions/2909311/android-list-view-drag-and...http://github.com/commonsguy/cwac-touchlist
for another example
On Nov 1, 8:33 am,
Thanks for sharing.
Can also look at
http://stackoverflow.com/questions/2909311/android-list-view-drag-and-drop-sort
http://github.com/commonsguy/cwac-touchlist
for another example
On Nov 1, 8:33 am, ericharlow eric.b.har...@gmail.com wrote:
I struggled with finding and using a simple drag and
Yes, it's possible, but you have to handle it by yourself. Just have a
look into TouchInterceptor.java class located within Music package of
Android sources. I have written my implementation after I learned how
android guys did it.
On Dec 30 2009, 5:59 am, Sean Neilan sneil...@gmail.com wrote:
I don't know *how* it's being done, but I believe what you are talking
about is in the Quick Settings app [http://beworx.com/bequick/], so
maybe ask him?
On Dec 29, 11:59 pm, Sean Neilan sneil...@gmail.com wrote:
Is it possible to drag and drop table rows in android? Say the user
holds down on
How can I create a list where I can rearrange list items with dragging
list rows to another row and so on (to change to order)?
Just like on the HTC Hero in the clocks app where you can rearrange
the order of clocks?
Wouter
On Dec 18, 11:08 pm, Business Talk roman.businesst...@gmail.com
wrote:
Thanks Mark
On Dec 18, 4:37 pm, Mark Murphy mmur...@commonsware.com wrote:
Business Talk wrote:
is there any drag and drop support in android? Couldn't find any
Nothing really built in, though with touch events and such you could
create something that works for your app.
--
Mark Murphy
Raman wrote:
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.
The home screen does something similar with widgets, and other
Hi Mark,
Thanks for your reply. I saw the behaviour you are talking about. If I
am not wrong, you are talking about the ability to drag the
application icons on the home screen to different locations. I am also
able to achieve that, but, unfortunately, that is not what I want. The
feature that
Raman wrote:
my requirement is to find out the View over which the
movable View is dropped. Please note that on the basis of which target
view, it is dropped at, I need to do a particular task.
So effectively, this problem is reduced to finding the View from the
coordinates to which it is
By using these solution, I can drag my custom view, my problem is
that how to make this custom view rotate in specified degree?
Its parent class View doesn't have a rotate method, I tried to use
its inside canvas, but it seems that just the canvas rotate, but the
custom view doesn't
yes dianne and peli , both of u r right. and so i am digging into the
launcher code and getting good result out of that.
regards
kaushik
On Sun, Jan 11, 2009 at 8:04 AM, Dianne Hackborn hack...@android.comwrote:
Fwiw, changing layout parameters is a really inefficient way to do
animations on
hi Peli
thank you very much for giving me the correct direction.
regards
Kaushik
On Fri, Jan 9, 2009 at 7:58 PM, Peli peli0...@googlemail.com wrote:
Introduce new member variables of your class:
int mOffsetX;
int mOffsetY;
Then below you do something like:
if ( action ==
Fwiw, changing layout parameters is a really inefficient way to do
animations on the screen. I would strongly suggest looking at the launcher
code and doing something inspired by that.
--
Dianne Hackborn
Android framework engineer
hack...@android.com
Note: please don't send private questions
I don't know what your final code looks like that you use, but you can
change the visibility of the original item you are dragging
temporarily using setVisibility(View.INVISIBLE) or View.GONE depending
on how your layout is organized, so that only one item is visible
while dragging.
You could
Refer Launcher code in the source tree.
-M
On Jan 8, 8:13 am, kaushik.siso kaushik@gmail.com wrote:
hi
i want to know how can i enbale Drag and drop feature in android.
suppose i have a image,which are to be dragged and dropped on another
result and it will start a new activity.
i
Hi Peli
here i attach my code, to be added , i have ressolved the issue of double
image by getting rawX() value of the event , and setting my absolute layout
according to that.
but here i get a unique problem, whenever i click the button and try to drag
it, the mouse tip comes to a certain pixels
what you have to do is, remember the coordinates that you get with the
ACTION_DOWN event.
Remember the distance (difference) between those coordinates and the
original coordinates of your image (call that offsetX and offsetY),
and subsequently in ACTION_MOVE always add those offset values.
Peli
hi
Can you please illustrate the scenarios of the constants
ACTION_MOVE,ACTION_DOWN,ACTION_UP ?
regards
Kaushik
On Fri, Jan 9, 2009 at 6:22 PM, Peli peli0...@googlemail.com wrote:
what you have to do is, remember the coordinates that you get with the
ACTION_DOWN event.
Remember the
Introduce new member variables of your class:
int mOffsetX;
int mOffsetY;
Then below you do something like:
if ( action == MotionEvent.ACTION_DOWN ) {
System.out.println(X=+mCurX+ y=+mCurY);
this.setText(x: + mCurX + ,y: + mCurY );
mOffsetX = mCurX - 10; // 10 was the initial
hi
i got a suggestion here. but i really doubt whether it will work or not.
http://groups.google.com/group/android-beginners/browse_thread/thread/fd9f7b241d4c160e/02d2798f5d949b2b
please give me a valid reasoning or example.
regards
Kaushik
On Thu, Jan 8, 2009 at 9:43 PM, kaushik.siso
Sorry, there is no support for this currently built into the platform, you
will have to roll it yourself. You shouldn't have trouble doing it yourself
for drag and drop in the same window (you can look at the standard home
screen for an example), but without system support doing it across windows
hi DIanne
thanks for ur suggestion. but suppose i want to do it on the same
widnow,then what will be the procedure.
trully speaking i am not getting any clue of that. i need prior info to
atleast check this feature on a single window
regards
kaushik
On Thu, Jan 8, 2009 at 11:53 PM, Dianne
The code sample you linked to should work.
The basic idea is that you continuously put your image to a new
position according to the coordinates that you obtain through
ACTION_MOVE to give the illusion of dragging.
In ACTION_UP you check whether the finger position is close to the
target.
in
You can also look at the source code of the Home (Launcher)
application, in particular the class called DragLayer.
On Thu, Jan 8, 2009 at 11:12 AM, Peli peli0...@googlemail.com wrote:
The code sample you linked to should work.
The basic idea is that you continuously put your image to a new
which can be found here:
http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=blob;f=src/com/android/launcher/DragLayer.java
with the related classes being here:
http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;a=tree;f=src/com/android/launcher
but this is
hi all
i have mentioned about a code link which can be used as an e.g. of the
Drag_N_Drop feature, but there will be small change.
the onMotionEvent(MotionEvent event) has to be replaced by
onTouchEvent(MotionEvent event).
though it starts the Drag_n_drop but it not smooth as u expect.
rather
36 matches
Mail list logo