Android Tutorial Custom transitions between activities

awoo060

Member
Licensed User
Longtime User
Hey Erel, I've created a simple transition that has a duration of zero seconds which works fine the first time I start an activity using StartActivity(). But when I resume an activity that has been kept open, it reverts to the default transition. I've tried moving the SetAnimation code into the Activity_Pause routine of the activity that is moving to the background with no luck.

I've also ensured there is no specific code called from Activity_Create that might be effecting the results, as this would not be called the second time during Activity_Resume (as I understand)

Any suggestions?
 

awoo060

Member
Licensed User
Longtime User
Thanks for the quick reply, hadn't noticed this had gone onto a new page... Apparently I can't upload as the file is too big? Its a pretty small project, but comes to ~550K when zipped...
 

awoo060

Member
Licensed User
Longtime User
Hey Erel, I've rezipped it and included some instructions as well. I removed the apk and classes.dex which seemed to be the biggest files in there and seem to be getting rebuilt and compile time. Please let me know if you have any issues getting it up and running or missing libraries.

Cheers,
Ant.
 

Attachments

  • Demo2.zip
    270.8 KB · Views: 549

awoo060

Member
Licensed User
Longtime User
Sorry mate,

So you'll start on tab 1 - the tabs are at the bottom. Move along to 2, 3, 4 and 5 and you'll see the intended effect. When doing this activity 2, 3, 4 and 5 are opened respectively and kept open. If you then go back in the opposite direction, you will see that the default fade in transition is being used instead of the custom one found under /objects/res/anim.

Thanks in advance for any advice.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…