Stuck Animation

by Michael » Wed, 10 Feb 2010 07:15:54 GMT


Sponsored Links
 Hello,

What I'm trying to do:

I would like to have multiple ImageViews moving across the screen in
random directions, with each one shrinking as it reaches its
destination. If an ImageView is clicked, it changes color.


How it is currently implemented:

I create a new ImageView then add it to my relative layout (the only
layout for the app). Then I (programmatically) create an AnimationSet
for my animations and pass that to the startAnimation() method of my
ImageView. I have an OnClickListener assigned to each ImageView.


What happens:

The animations work out as they should, but the ImageView also appears
in the top left corner of the screen (unmoving). The image in the top
left corner of the screen is what responds to clicks (and not the
moving image).


Solution?

This is my first attempt at Android tween animations, so forgive me if
this is something really trivial. I feel that I shouldn't be adding my
ImageView to the layout before starting the animation, but I can not
get the ImageView to appear on the screen any other way. Does anyone
know what might be the problem?

--



Other Threads

1. OpenCOE :: Disabling the audio path

Hi Friends,

I want to disable the audio path while playing a .3gp file having both audio
and video.
Is there any setting/parameter/configuration available in OpenCORE to
disable the audio path in PVPlayer?

Thanks and Regards
APT

--~--~---------~--~----~------------~-------~--~----~

2. BulletML : Source Code

Hi everybody,

I have ported Kenta Chos BulletML demo code to the Android platform
here:

http://code.google.com/p/netthreads-for-android/


"BulletML is the Bullet Markup Language. BulletML can describe the
barrage of bullets in shooting games"

I thought a few game designers would be interested. The plan is to use
this in a game application I am working on.

I have ported his game Noiz2 to Android but it's not quite ready yet.

Al.


--~--~---------~--~----~------------~-------~--~----~

3. How to control composing text more flexibly in Android 1.5 IMF.

4. Assets on device

5. UTF 8 show chars on screen

6. About enabling log messages in kernel

7. File picker in preferenceScreen