Activity animation not working on Galaxy Tab

I use xml to switch activity, it works on all devices, as well as on a Samsung phone, but the same does not work on a samsung galaxy Tab. Can someone help me why this is happening, what should I do?

I am using the following code:

Intent intent = new Intent(TabletAnimActivity.this,Next.class); startActivity(intent); overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out); 

push_left_in:

 set xmlns:android="http://schemas.android.com/apk/res/android" translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="5000" alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="1600" set 

push_left_out

 set xmlns:android="http://schemas.android.com/apk/res/android" translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="5000" alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="1600" set 

Thanks and Regards

+3
source share
4 answers

The overridePendingTransition api error seems to fail on all samsung devices (have tried the ace / s / tab galaxy). Even the android sdk api demo (ApiDemos / app / activity / animation) for overridePendingTransition fails.

+4
source

Animation is disabled by default on samsung phones

Go to Settings -> display -> animations, and then turn on the All animation, and you can see the animation

+6
source

Perhaps a little late, but for people like me who struggle with this:

On all devices, Samsung TouchWiz disables animation in two ways, depending on the version of Android.

  • Version < 4.0 - disables animation in Settings > Display > Animations > Off - change to On

  • Version >= 4.0 - disables animation in Developer Options > Drawing > Animator Duration Scale > Animation scale x0 - change to Animation Scale x1

Hope this helps anyone in this situation.

+6
source

One thing to check on the galactic device is the settings that the user can remove the window animation.

0
source

Source: https://habr.com/ru/post/895938/


All Articles