Эффекты перехода активности: вставьте верхнюю активность и масштаб нижней активности
Я хочу добиться эффекта, показанного ниже. Эффект от Facebook.
Я пробовал это вДеятельность А:
overridePendingTransition(R.anim.anim_left_to_right, R.anim.scale_out);
И вДеятельность Б:
overridePendingTransition(R.anim.anim_right_to_left, R.anim.scale_in);
Где XML отображаются ниже:
R.anim.anim_left_to_right
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate android:fromXDelta="100%"
android:toXDelta="0%"
android:fromYDelta="0%"
android:toYDelta="0%"
android:duration="300"/>
</set>
R.anim.anim_right_to_left
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate
android:fromXDelta="0%" android:toXDelta="100%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="300" />
</set>
R.anim.scale_out
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:fromXScale="1.0"
android:fromYScale="1.0"
android:toXScale="1.0"
android:toYScale="1.0"
android:duration="500"
android:fillBefore="false" />
</set>
R.anim.scale_in
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:fromXScale="1.0"
android:fromYScale="1.0"
android:toXScale="0.8"
android:toYScale="0.8"
android:duration="500"
android:fillBefore="false" />
</set>
Тем не менее, он не достигает желаемого эффекта - по некоторым причинам, я просто не могу получить это право. Может ли кто-нибудь помочь мне с этим, пожалуйста?