Android override Pending Transition Does Not Work

Asked 2 years ago, Updated 2 years ago, 24 views

You want to implement it as a slide effect that slides sideways when the activity is passed.

However, even if you follow the simple examples of googling,

The animation effect that comes out from the side when the activity is passed is not applied.

Just in case, I can't change the app theme

Is there a setting where overridePendingTransition is operated or something that doesn't work on a kind of terminal?

android

2022-09-22 08:23

1 Answers

As shown in the document, the overridePendingTransition() function must be called after the startActivity() or finish() function. If you post the code you wrote, it will be helpful to understand the problem. First of all, in the current situation, it would be better to take a look at the codes in the following link and see if there are any differences with the codes you wrote.

If the activity theme is transparent, there is an article that overridePendingTransition() does not work, so it would be good to check this part as well.


2022-09-22 08:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.