Animate *actual* position of a View

by Lance Fetters » Mon, 16 Nov 2009 12:47:20 GMT

Sponsored Links
 I am attempting to port a simple "tap the moving target" iPhone game
to Android (1.6). The game animates the position of a button, moving
it to random locations, while the user tries to tap it.

With the iPhone, moving the button is rather simple:

  [UIView beginAnimations:nil context:nil]; = CGPointMake(x, y);
  [UIView commitAnimations];

I have attempted to duplicate this on Android using Animation/
TranslateAnimation, but have found that this only affects where the
image of the button appears, not the tap boundaries. In other words,
even though the button appears to be moving, it is not possible to tap

Is there a way to animate the actual position of a View in Android? If
not, does anyone have any suggestions on the "Android-way" of making
such a game?


Other Threads

1. Single App Across Platforms.


How does android make single app execute on multiple hardware devices. Does
the Manifest have elements like screen size, resolution, CPU architecture



2. Readind the APN setting data

Hi all

How to read the access point network setting  data in android from the


3. How to differenciate two tables

4. Location Device and Information Usage

5. Change Text color and text size in listview

6. Connecting to bluetooth devices

7. Regarding Battery drainage problem