1

I am developing an app in which I am using overridePendingTransition for animation on my activites, everything is fine but the problem is that I don't want to show animation which it to be started, means when I click on a button the my first activity must go down to the screen but the coming activity must be stable to its position, I have passed 0 in method as below

    overridePendingTransition(R.anim.toptobottom, 0);

but my second activity fluctuates for a while can anybody tell me whats the problem. thanks in advance.

rahul
  • 2,613
  • 8
  • 32
  • 55

2 Answers2

0

May be the problem is in your device, at least in Samsung i guess device animation should be turned on.

Settings>>Display(GB)/Developer Option>> Animation/Window animation scale

IronBlossom
  • 3,898
  • 3
  • 35
  • 42
0

Finally after a month I found the solution to this...

Check the exact same question...

I missed it from my translate:

android:fromYDelta="-100%p 
Community
  • 1
  • 1
amalBit
  • 12,041
  • 6
  • 77
  • 94