Android Question Switching activities = annoying animation flash

sorex

Expert
Licensed User
Longtime User
Hello,

I tend to use multi panels which I hide or show based on a menu selection.

Now I was checking out multiple activities which seems usefull as it splits up the code and layout which prevents the usual mess in the other method.

But when I switch from the first activity to another one I see this annoying zoom in animation flash.
When going back to the main activity it doesn't seem to happen.
When going back to the other activity which is created now the flash is there again.

Is this OS depending and can this zoom-in be disabled? (it's a tablet with 4.x on it)

The background also seems to be a black to darkgray gradient even when the activity has no gradient set.
 

barx

Well-Known Member
Licensed User
Longtime User
Hey Sorex,

Any chance you could get a video of this as I'm not 100% sure what your on about. There is a standard activity show animation that is set by the device but this shouldn't 'flash'. Or at least if it has been set by manufacturer to do that then it should be same for all apps.

The only time I have suffered something that sounds similar was when I used a webview and it was indeed the webview that was flashing.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
it's like you see the last part of a window zooming from some size to full screen.

not sure if I can capture it, I only know how to capture a static screenshot :)

edit: just had another look, it's like a black line around the gradient that goes away.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
do you see it if you start a blank activity?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
this is strange, I worked on this at work and when I run that one it's not having issues.

can it be that it only happends on a blank activity?

let me test this, brb
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
seems that I found the issue.

when I dissable the loadlayout it's there again.

I added the project so that you can see what I mean(t)
 

Attachments

  • ActivityFlash.zip
    3.7 KB · Views: 228
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
Well I can't check the project yet as I'm on my phone and away from pc but if it only appears with a blank activity, is there an issue? Why would you show a blank activity. The idea of activities is to show some user interface....
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
it's not a blank one, I didn't load a layout.

it was my first activity test actually but I kept on coding and didn't notice that it was gone after the layout was loaded.

that first test code was still "running" on my tablet since then that's why my eye fell on it again :)
 
Upvote 0
Top