Disable sliding animation which is not applied through code

56 Views Asked by At

I am getting one strange issue. I have not applied any sliding animation while redirecting from 1 activity to another activity. But, I have checked my application in Samsung Galaxy S7 Edge[OS version 7.0], it is displaying sliding animation when redirected to another activity. I am not getting this why this is happening. any help appreciated.

1

There are 1 best solutions below

2
Mustafa Bohra On

Use this in your activity when you are using intent to jump to another activity

overridePendingTransition(0, 0)

Ref: https://developer.android.com/reference/android/app/Activity#overridePendingTransition(int,%20int)