Android Question Click already possible while activity is still animating

wimpie3

Well-Known Member
Licensed User
Longtime User
Hello,

I'm opening a new Activity with a zoom animation. It takes a while before the activity shows up (zooms in), because there are a lot of initializations to be done on that new activity.

During that small waiting time, the (initially invisible) buttons on the new activity already seem to be clickable, although they are not yet visible due to the animation.

Has anyone seen this behaviour before?
 

eps

Expert
Licensed User
Longtime User
ProgressDialogShow or ProgressDialogShow2 should do the trick I think.

Alternatively you could place a clear panel over your buttons and allow that to consume the click events instead...
 
Upvote 0

wimpie3

Well-Known Member
Licensed User
Longtime User
An example, anyone? This doesn't seem to work because when you use an animation to switch between activities, there is no end-animation function...
 
Upvote 0
Top