title: Android Drag/Animation of Views
body: <p>I'm not a programmer, but I'm trying to learn android development, and having a blast. </p>
  
  <p>Lately I've hit a fork in the road, and I don't know that any of the directions I can identify will meet all my needs. This is where you (the experts) can help ;) </p>
  
  <p>Endpoint: I want to have the user touch a ball, and drag it to any location on the screen. I would also like to animate this ball when it gets drawn, and when it gets dropped. </p>
  
  <p>I can accomplish the dragging part using a custom class (that doesn't extend anything... just a class like is found in this tutorial: <a href="http://www.anddev.org/basic_drag_and_drop-t3095.html" rel="noreferrer">basic drag &amp; drop</a>, however, I don't know how to apply the tween animation to it since it's not a view. </p>
  
  <p>I have also developed an animated version of an ImageView with my image in it, however, I can't manage to apply the same drag &amp; drop functionality without using AbsoluteLayout, which I know is a no-no. </p>
  
  <p>So... how do I move an ImageView around a ??? layout using MotionEvents, or how do I animate (using tweens defined in XML) a non-view based custom class? </p>
  
  <p>Please ask questions if this is not clear. I don't know all the terminology as well as most of you might.</p>
  
  <p>There is also a <a href="http://www.anddev.org/need_advice_on_layouts-views-drag-animation-t11648.html" rel="noreferrer">copy</a> of this question on the anddev.org forums, so I'll keep this post updated with any responses I get over there.</p>