Questions tagged [overridependingtransition]
14 questions
8
votes
1 answer
Use overridePendingTransition in conjuction with recreate(). Can it be done?
I've been using Android's overridePendingTransition method to animate my activity page transitions with great success. Example shown
startActivity(new Intent(GetTagActivity.this, MainActivity.class));
overridePendingTransition(R.anim.fade_in,…

seekingStillness
- 4,833
- 5
- 38
- 68
5
votes
1 answer
overridePendingTransition duration is ignored
I'm using overridePendingTransition to set my own activity transition. Everything works fine except that I cannot change to duration of the animation, it is ignored.
slide_down.xml

fredthemugwump
- 729
- 1
- 6
- 11
5
votes
4 answers
How to declare overridePendingTransition inside onBindViewHolder of a RecyclerView adapter?
I've created an intent object along with Bundle when a CardView is clicked and then I start the Activity. How do I declare overridePendingTransition inside it? Code is given belew :
@Override
public void onBindViewHolder(final ViewHolder holder,…

Swapnil Sharma
- 351
- 2
- 4
- 13
3
votes
1 answer
Activity transition happening too quickly for animation
Edit
Issue can be seen here:
I have a login screen and a registration screen.
When the user clicks the registration button - I would like to slide from the login screen to the registration screen. I have this working okay.
When the user presses the…

TomSelleck
- 6,706
- 22
- 82
- 151
3
votes
4 answers
overridePendingTransition: right to left slide with depth in the activity
I managed to pull off a right to left slide in my activity easily by using this animation R.anim.anim_left_to_right:

Simon
- 19,658
- 27
- 149
- 217
1
vote
0 answers
overridePendingTransition makes screen black in API 23,but working well in API 29
In my app,i added an refresh button to reload the activity.I also uses overridePendingOperation for smoother transition.
This is the method,which is reloading the activity.
private void refreshActivity(){
finish();
…

Amit Singh
- 21
- 2
1
vote
0 answers
Use overridePendingTransition with multiple screens
I'm trying to use overridePendingTransition in my app but I'm using multiples screens in the same xml (I'm programming a android game) and when I switch from one screen to another I use the Visibility property, in this case is there any way to use…

porthfind
- 1,581
- 3
- 17
- 30
1
vote
1 answer
How to launch an android app(not an activity) from the bottom of the screen to top?
I have used
overridePendingTransition()already but it is used to open an activity with the given transition not an app.
Moreover it works only when you are having an intent on clicking on a button, it won't work if use overridePendingTransition()…

user3542307
- 139
- 1
- 8
0
votes
2 answers
Activity slide animation only works when back button is pressed
Im trying to add a sliding animation when entering and exiting an activity but it only works when the phones back button is pressed. When pressing the up button in the toolbar or a separate button it doesn't work.
I tried adding the…

Pepe Silvia
- 81
- 1
- 8
0
votes
1 answer
Transition animation is not working on landscape mode
I'm trying to animate transitions between Activities in my application. I have right_to_left.xml which is working on Portrait screen orientation.
Here is right_to_left.xml

Emre Alparslan
- 1,022
- 1
- 18
- 30
0
votes
1 answer
Adding a shared floating action button to two existing activities
I'm working on an app that is already in production, it has multiple activities. The designers now want to add a Floating Action Button which is anchored to the bottom-right of two of our activities (possibly more in future). The FAB needs to remain…

qtyq
- 92
- 4
0
votes
1 answer
OverrideingPendingTransition android implementation
I am writing some code to override default enter and exit animations for Activity.
I am using OverridePendingTransition to achieve this task
Here I am doing transition from Activity1 to Activity2.
What I want is that, Activity1 should move from…

Jay Vyas
- 2,674
- 5
- 27
- 58
0
votes
1 answer
overridePendingTransition() is not always working
I have tried to add self defined animation for transition between the activities, but the animation is not getting overridden every time.
Sometimes the default animation is been shown and sometimes the animation which I have defined.
Please check…

AHanny
- 3
- 3
0
votes
1 answer
how to hide bottom black area when entering new activity from top of screen
I am entering a new activity from top to bottom, while keeping the old still. Everything works fine, except that there is a black area at the bottom of the new entering activity, which does not look very nice (see the picture). The theme I am using…

xagutxu
- 81
- 6