Animation fragment injector (beta)

This commit is contained in:
gdlbo
2022-06-11 19:46:22 +03:00
parent 59702a47f0
commit 8615d33da9
71 changed files with 524 additions and 151 deletions
@@ -0,0 +1,71 @@
package ru.vtosters.lite.utils;
import static ru.vtosters.lite.utils.Globals.getIdentifier;
import static ru.vtosters.lite.utils.Globals.getPrefsValue;
import android.content.res.Resources;
import android.support.v4.app.FragmentTransaction;
public class FragAnimationKit {
// Q
private static final int actOpenEnter = getIdentifier("q_enter", "anim");
private static final int actCloseExit = getIdentifier("q_pop_exit", "anim");
// Slide
private static final int SactOpenEnter = getIdentifier("legacy_enter", "anim");
private static final int SactCloseExit = getIdentifier("legacy_pop_exit", "anim");
// Fade
private static final int FadeOpenEnter = getIdentifier("vkme_enter_slide_up", "anim");
private static final int FadeCloseExit = getIdentifier("vkme_enter_slide_down", "anim");
// System
private static final Resources resources = Resources.getSystem();
private static final int SSactOpenEnter = resources.getIdentifier("activity_open_enter", "anim","android");
private static final int SSactCloseExit = resources.getIdentifier("activity_close_exit", "anim", "android");
// System [task]
private static final int SSTactOpenEnter = resources.getIdentifier("task_open_enter", "anim","android");
private static final int SSTactCloseExit = resources.getIdentifier("task_close_exit", "anim", "android");
public static void animateOpen(FragmentTransaction transaction) {
setAnimations(transaction);
}
public static void animateClose(FragmentTransaction transaction) {
setAnimations(transaction);
}
public static void setAnimations(FragmentTransaction transaction) {
if (transaction != null && !getPrefsValue("anim_rtrn_type").equals("noanim")) {
switch (getPrefsValue("anim_rtrn_type")) {
case "q":
transaction.a(
actOpenEnter,
actCloseExit
);
break;
case "fade":
transaction.a(
FadeOpenEnter,
FadeCloseExit
);
break;
case "slide":
transaction.a(
SactOpenEnter,
SactCloseExit
);
break;
case "system":
transaction.a(
SSactOpenEnter,
SSactCloseExit
);
break;
case "system_task":
transaction.a(
SSTactOpenEnter,
SSTactCloseExit
);
break;
}
}
}
}
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:shareInterpolator="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<scale
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="@integer/abc_config_activityDefaultDur"
android:fromXScale="0.9"
android:fromYScale="0.9"
android:interpolator="@android:anim/decelerate_interpolator"
android:pivotX="50.0%"
android:pivotY="100.0%"
android:fromXScale="0.9"
android:toXScale="1.0"
android:fromYScale="0.9"
android:toYScale="1.0" />
<alpha
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="@integer/abc_config_activityShortDur"
android:fromAlpha="0.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:toAlpha="1.0" />
</set>
+3 -3
View File
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:shareInterpolator="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<alpha
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="@integer/abc_config_activityShortDur"
android:fromAlpha="0.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:toAlpha="1.0" />
</set>
+3 -3
View File
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:shareInterpolator="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<alpha
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="@integer/abc_config_activityShortDur"
android:fromAlpha="1.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:toAlpha="0.0" />
</set>
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:shareInterpolator="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<scale
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="@integer/abc_config_activityDefaultDur"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:pivotX="50.0%"
android:pivotY="100.0%"
android:fromXScale="1.0"
android:toXScale="0.9"
android:fromYScale="1.0"
android:toYScale="0.9" />
<alpha
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="@integer/abc_config_activityShortDur"
android:fromAlpha="1.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:toAlpha="0.0" />
</set>
+3 -3
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<alpha android:interpolator="@android:interpolator/decelerate_quad"
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@integer/config_tooltipAnimTime"
android:fromAlpha="0.0"
android:toAlpha="1.0"
xmlns:android="http://schemas.android.com/apk/res/android" />
android:interpolator="@android:interpolator/decelerate_quad"
android:toAlpha="1.0" />
+3 -3
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<alpha android:interpolator="@android:interpolator/accelerate_quad"
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@integer/config_tooltipAnimTime"
android:fromAlpha="1.0"
android:toAlpha="0.0"
xmlns:android="http://schemas.android.com/apk/res/android" />
android:interpolator="@android:interpolator/accelerate_quad"
android:toAlpha="0.0" />
+5 -5
View File
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:zAdjustment="normal"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:zAdjustment="normal">
<alpha
android:duration="300"
android:fillBefore="true"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromAlpha="1.0"
android:toAlpha="1.0"
android:fillEnabled="true" />
android:toAlpha="1.0" />
</set>
+14 -14
View File
@@ -1,25 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:shareInterpolator="false"
android:zAdjustment="top"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false"
android:zAdjustment="top">
<alpha
android:interpolator="@android:interpolator/decelerate_cubic"
android:duration="300"
android:fillBefore="true"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromAlpha="1.0"
android:toAlpha="0.0"
android:fillEnabled="true" />
<scale
android:interpolator="@android:interpolator/decelerate_cubic"
android:toAlpha="0.0" />
<scale
android:duration="300"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:interpolator="@android:interpolator/decelerate_cubic"
android:pivotX="50.0%p"
android:pivotY="50.0%p"
android:fillBefore="true"
android:fillAfter="true"
android:fromXScale="1.0"
android:toXScale="0.8"
android:fromYScale="1.0"
android:toYScale="0.8"
android:fillEnabled="true" />
android:toYScale="0.8" />
</set>
+2 -2
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator">
<translate
android:duration="300"
android:fromYDelta="100.0%p"
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/accelerate_interpolator"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
<translate
android:duration="300"
android:fromYDelta="0.0%p"
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="225"
android:interpolator="@android:interpolator/linear_out_slow_in">
<translate
android:fromYDelta="100.0%p"
android:toYDelta="0.0" />
</set>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="195"
android:interpolator="@android:interpolator/fast_out_linear_in">
<translate
android:fromYDelta="0.0%p"
android:toYDelta="100.0%p" />
</set>
+4 -4
View File
@@ -5,15 +5,15 @@
android:state_pressed="true">
<objectAnimator
android:duration="200"
android:propertyName="translationZ"
android:valueTo="2.0dip"
android:valueType="floatType"
android:propertyName="translationZ" />
android:valueType="floatType" />
</item>
<item>
<objectAnimator
android:duration="200"
android:propertyName="translationZ"
android:valueTo="1.0dip"
android:valueType="floatType"
android:propertyName="translationZ" />
android:valueType="floatType" />
</item>
</selector>
+4 -4
View File
@@ -5,15 +5,15 @@
android:state_pressed="true">
<objectAnimator
android:duration="200"
android:propertyName="translationZ"
android:valueTo="4.0dip"
android:valueType="floatType"
android:propertyName="translationZ" />
android:valueType="floatType" />
</item>
<item>
<objectAnimator
android:duration="200"
android:propertyName="translationZ"
android:valueTo="2.0dip"
android:valueType="floatType"
android:propertyName="translationZ" />
android:valueType="floatType" />
</item>
</selector>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/accelerate_decelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@integer/bottom_sheet_slide_duration"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:interpolator/fast_out_linear_in">
<translate
android:fromYDelta="20.000004%p"
android:toYDelta="0.0" />
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/accelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@integer/bottom_sheet_slide_duration"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:interpolator/fast_out_slow_in">
<translate
android:fromYDelta="0.0"
android:toYDelta="20.000004%p" />
+3 -3
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<translate android:fromYDelta="100.0%"
android:toYDelta="0.0"
xmlns:android="http://schemas.android.com/apk/res/android" />
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromYDelta="100.0%"
android:toYDelta="0.0" />
+3 -3
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<translate android:fromYDelta="0.0"
android:toYDelta="100.0%"
xmlns:android="http://schemas.android.com/apk/res/android" />
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromYDelta="0.0"
android:toYDelta="100.0%" />
+3 -3
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<alpha android:interpolator="@android:anim/accelerate_interpolator"
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
android:fromAlpha="1.0"
android:toAlpha="0.0"
xmlns:android="http://schemas.android.com/apk/res/android" />
android:interpolator="@android:anim/accelerate_interpolator"
android:toAlpha="0.0" />
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
android:pathData="M 0,0 C 0.05, 0, 0.133333, 0.06, 0.166666, 0.4 C 0.208333, 0.82, 0.25, 1, 1, 1" />
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
android:controlX1="0.4"
android:controlX2="1.0"
android:controlY1="0.0"
android:controlY2="1.0" />
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<scale
android:duration="@android:integer/config_shortAnimTime"
android:fromXScale="0.9"
android:fromYScale="0.9"
android:pivotX="50.0%"
android:pivotY="0.0%"
android:toXScale="1.0"
android:toYScale="1.0" />
<alpha
android:duration="@android:integer/config_shortAnimTime"
android:fromAlpha="0.0"
android:toAlpha="1.0" />
</set>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="100">
<translate
android:fromYDelta="-20.000004%"
android:interpolator="@android:anim/decelerate_interpolator"
android:toYDelta="0.0" />
<alpha
android:fromAlpha="0.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:toAlpha="1.0" />
</set>
+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="100">
<translate
android:fromYDelta="20.000004%"
android:interpolator="@android:anim/decelerate_interpolator"
android:toYDelta="0.0" />
<alpha
android:fromAlpha="0.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:toAlpha="1.0" />
</set>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android"
android:animation="@anim/item_animation_fall_down"
android:animationOrder="normal"
android:delay="14.999998%" />
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android"
android:animation="@anim/item_animation_fall_up"
android:animationOrder="reverse"
android:delay="14.999998%" />
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate
android:duration="250"
android:fromXDelta="100.0%"
android:fromYDelta="0.0%"
android:toXDelta="0.0%"
android:toYDelta="0.0%" />
</set>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate
android:duration="250"
android:fromXDelta="0.0%"
android:fromYDelta="0.0%"
android:toXDelta="-100.0%"
android:toYDelta="0.0%" />
</set>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate
android:duration="250"
android:fromXDelta="-100.0%"
android:fromYDelta="0.0%"
android:toXDelta="0.0%"
android:toYDelta="0.0%" />
</set>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate
android:duration="250"
android:fromXDelta="0.0%"
android:fromYDelta="0.0%"
android:toXDelta="100.0%"
android:toYDelta="0.0%" />
</set>
+2
View File
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<linearInterpolator />
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
android:controlX1="0.0"
android:controlX2="0.2"
android:controlY1="0.0"
android:controlY2="1.0" />
+6 -6
View File
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator">
<scale
android:interpolator="@android:anim/bounce_interpolator"
android:duration="200"
android:fillAfter="false"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:interpolator="@android:anim/bounce_interpolator"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:fillAfter="false"
android:repeatCount="1"
android:repeatMode="reverse"
android:fromXScale="1.0"
android:toXScale="1.2"
android:fromYScale="1.0"
android:toYScale="1.2" />
</set>
+6 -6
View File
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator">
<scale
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="100"
android:fillAfter="false"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:fillAfter="false"
android:repeatCount="1"
android:repeatMode="reverse"
android:fromXScale="1.0"
android:toXScale="0.7"
android:fromYScale="1.0"
android:toYScale="0.7" />
</set>
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:anim/decelerate_interpolator">
<translate
android:fromYDelta="0.0"
android:toYDelta="0.0" />
+3 -3
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<alpha android:interpolator="@android:anim/accelerate_interpolator"
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
android:fromAlpha="0.0"
android:toAlpha="1.0"
xmlns:android="http://schemas.android.com/apk/res/android" />
android:interpolator="@android:anim/accelerate_interpolator"
android:toAlpha="1.0" />
+3 -3
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<alpha android:interpolator="@android:anim/accelerate_interpolator"
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
android:fillAfter="true"
android:fromAlpha="1.0"
android:toAlpha="0.0"
xmlns:android="http://schemas.android.com/apk/res/android" />
android:interpolator="@android:anim/accelerate_interpolator"
android:toAlpha="0.0" />
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<translate android:duration="50"
xmlns:android="http://schemas.android.com/apk/res/android" />
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="50" />
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="@android:integer/config_longAnimTime"
android:fromYDelta="0.0"
android:toYDelta="100.0%p" />
<alpha
android:duration="300"
android:fromAlpha="1.0"
android:toAlpha="0.0" />
</set>
+7 -7
View File
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:shareInterpolator="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<scale
android:interpolator="@android:anim/overshoot_interpolator"
fromXScale="0.1"
android:duration="400"
android:fromYScale="0.1"
android:interpolator="@android:anim/overshoot_interpolator"
android:pivotX="20.000004%"
android:pivotY="0.0"
android:toXScale="1.0"
android:fromYScale="0.1"
android:toYScale="1.0"
fromXScale="0.1" />
android:toYScale="1.0" />
<alpha
android:interpolator="@android:anim/decelerate_interpolator"
android:duration="400"
android:fromAlpha="0.0"
android:interpolator="@android:anim/decelerate_interpolator"
android:toAlpha="1.0" />
</set>
+3 -1
View File
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@anim/linear_out_slow_in"
android:shareInterpolator="true">
<translate
android:duration="300"
android:fromYDelta="-100.0%p"
+4 -2
View File
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:ordering="together"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@anim/fast_out_linear_in"
android:ordering="together"
android:shareInterpolator="true">
<translate
android:duration="300"
android:fromYDelta="0.0"
+25
View File
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<alpha
android:duration="50"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromAlpha="0.0"
android:interpolator="@anim/linear"
android:startOffset="50"
android:toAlpha="1.0" />
<scale
android:duration="400"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromXScale="0.85"
android:fromYScale="0.85"
android:interpolator="@anim/fast_out_extra_slow_in"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:toXScale="1.0"
android:toYScale="1.0" />
</set>
+25
View File
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<alpha
android:duration="87"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromAlpha="1.0"
android:interpolator="@anim/linear"
android:startOffset="83"
android:toAlpha="0.4" />
<scale
android:duration="400"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:interpolator="@anim/fast_out_extra_slow_in"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:toXScale="1.05"
android:toYScale="1.05" />
</set>
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<scale
android:duration="400"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromXScale="1.1"
android:fromYScale="1.1"
android:interpolator="@anim/fast_out_extra_slow_in"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:toXScale="1.0"
android:toYScale="1.0" />
</set>
+26
View File
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false"
android:zAdjustment="top">
<alpha
android:duration="167"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromAlpha="1.0"
android:interpolator="@anim/linear"
android:startOffset="33"
android:toAlpha="0.0" />
<scale
android:duration="400"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:interpolator="@anim/fast_out_extra_slow_in"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:toXScale="0.9"
android:toYScale="0.9" />
</set>
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<scale
android:duration="@android:integer/config_shortAnimTime"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:pivotX="50.0%"
android:pivotY="0.0%"
android:toXScale="0.9"
android:toYScale="0.9" />
<alpha
android:duration="@android:integer/config_shortAnimTime"
android:fromAlpha="1.0"
android:toAlpha="0.0" />
</set>
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:anim/decelerate_interpolator">
<translate
android:fromYDelta="-4.999995%"
android:toYDelta="0.0" />
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:anim/decelerate_interpolator">
<translate
android:fromYDelta="50.0%"
android:toYDelta="0.0" />
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:anim/decelerate_interpolator">
<translate
android:fromYDelta="-50.0%"
android:toYDelta="0.0" />
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:anim/decelerate_interpolator">
<translate
android:fromYDelta="0.0"
android:toYDelta="50.0%" />
+4 -4
View File
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:anim/decelerate_interpolator">
<rotate
android:fromDegrees="-15.0"
android:toDegrees="0.0"
android:pivotX="50.0%"
android:pivotY="50.0%" />
android:pivotY="50.0%"
android:toDegrees="0.0" />
<translate
android:fromYDelta="-100.0%p"
android:toYDelta="0.0" />
+4 -4
View File
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/accelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:anim/accelerate_interpolator">
<rotate
android:fromDegrees="0.0"
android:toDegrees="15.0"
android:pivotX="50.0%"
android:pivotY="50.0%" />
android:pivotY="50.0%"
android:toDegrees="15.0" />
<translate
android:fromYDelta="0.0"
android:toYDelta="100.0%p" />
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:fromXScale="0.0%"
android:fromYScale="0.0%"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:toXScale="100.0%"
android:toYScale="100.0%" />
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0" />
</set>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:fromXScale="100.0%"
android:fromYScale="100.0%"
android:pivotX="50.0%"
android:pivotY="50.0%"
android:toXScale="0.0%"
android:toYScale="0.0%" />
<alpha
android:fromAlpha="1.0"
android:toAlpha="0.0" />
</set>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:anim/decelerate_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="400"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:anim/decelerate_interpolator">
<translate
android:fromYDelta="100.0%"
android:toYDelta="0.0" />
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@android:interpolator/accelerate_decelerate"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@android:interpolator/fast_out_slow_in">
<translate
android:fromYDelta="0.0"
android:toYDelta="14.999998%" />
+5 -5
View File
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:zAdjustment="normal"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:zAdjustment="normal">
<translate
android:duration="200"
android:fillBefore="true"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
android:fromXDelta="100.0%"
android:toXDelta="0.0"
android:fillEnabled="true" />
android:toXDelta="0.0" />
</set>
+2 -2
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:duration="300"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300">
<alpha
android:fromAlpha="0.0"
android:toAlpha="1.0" />
+2 -2
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:duration="300"
xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300">
<alpha
android:fromAlpha="1.0"
android:toAlpha="0.0" />
+5 -2
View File
@@ -1,3 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<accelerateInterpolator android:factor="2.0"
xmlns:android="http://schemas.android.com/apk/res/android" />
<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
android:controlX1="0.4"
android:controlX2="0.2"
android:controlY1="0.0"
android:controlY2="1.0" />
+6 -6
View File
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@anim/vkme_enter_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="180"
android:shareInterpolator="true"
android:fillBefore="true"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@anim/vkme_enter_interpolator"
android:shareInterpolator="true">
<translate
android:fromYDelta="0.0%"
android:toYDelta="3.9999962%" />
<scale
android:pivotX="50.0%"
android:fromXScale="100.0%"
android:toXScale="96.0%"
android:fromYScale="100.0%"
android:pivotX="50.0%"
android:toXScale="96.0%"
android:toYScale="96.0%" />
<alpha
android:fromAlpha="1.0"
+6 -6
View File
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:interpolator="@anim/vkme_enter_interpolator"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
android:shareInterpolator="true"
android:fillBefore="true"
android:fillAfter="true"
android:fillBefore="true"
android:fillEnabled="true"
xmlns:android="http://schemas.android.com/apk/res/android">
android:interpolator="@anim/vkme_enter_interpolator"
android:shareInterpolator="true">
<translate
android:fromYDelta="3.9999962%"
android:toYDelta="0.0%" />
<scale
android:pivotX="50.0%"
android:fromXScale="96.0%"
android:toXScale="100.0%"
android:fromYScale="96.0%"
android:pivotX="50.0%"
android:toXScale="100.0%"
android:toYScale="100.0%" />
<alpha
android:fromAlpha="0.0"
+4 -4
View File
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<set android:duration="200"
android:fillBefore="true"
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="200"
android:fillAfter="false"
android:fillEnabled="false"
xmlns:android="http://schemas.android.com/apk/res/android">
android:fillBefore="true"
android:fillEnabled="false">
<alpha
android:fromAlpha="1.0"
android:toAlpha="1.0" />
+8
View File
@@ -438,6 +438,14 @@
<item>Видеозапись</item>
<item>Документ</item>
</string-array>
<string-array name="animations">
<item>Без анимации</item>
<item>Android Q</item>
<item>Fade</item>
<item>Слайд</item>
<item>Системный</item>
<item>Системный (task)</item>
</string-array>
<string-array name="language">
<item>Системный</item>
<item>Английский</item>
+3
View File
@@ -4443,5 +4443,8 @@
<string name="dateformat">Выберите тип показа дат</string>
<string name="franimation">Анимация фрагментов (бета)</string>
<string name="selectfranimation">Выберите анимацию фрагментов</string>
<string name="empty_text" />
</resources>
+6 -4
View File
@@ -559,18 +559,20 @@
<item>Document</item>
</string-array>
<string-array name="animations">
<item>No Animation</item>
<item>Android Q</item>
<item>Fade</item>
<item>Slide</item>
<item>System</item>
<item>System task</item>
<item>AndroidX</item>
<item>Fade</item>
</string-array>
<string-array name="animations_values">
<item>noanim</item>
<item>q</item>
<item>fade</item>
<item>slide</item>
<item>system</item>
<item>system_task</item>
<item>frag_enter</item>
<item>frag_fade</item>
</string-array>
<string-array name="language">
<item>System</item>
+3
View File
@@ -4577,6 +4577,9 @@ May look like a fake leaving the online"</string>
<string name="dateformat">Select the date display type</string>
<string name="franimation">Fragment animation (beta)</string>
<string name="selectfranimation">Select fragment animation</string>
<item type="string" name="APKTOOL_DUMMY_10be" />
<item type="string" name="APKTOOL_DUMMY_10bf" />
<item type="string" name="APKTOOL_DUMMY_10c0" />
+7
View File
@@ -25,6 +25,13 @@
android:entryValues="@array/start_values"
android:key="start_values"
android:title="@string/interfacestartfr" />
<com.vtosters.lite.ui.SummaryListPreference
android:defaultValue="noanim"
android:dialogTitle="@string/selectfranimation"
android:entries="@array/animations"
android:entryValues="@array/animations_values"
android:key="anim_rtrn_type"
android:title="@string/franimation" />
<com.vtosters.lite.ui.SummaryListPreference
android:defaultValue="default"
android:dialogTitle="@string/dateformat"
@@ -201,6 +201,8 @@
invoke-virtual {v0, p1, p2}, Landroid/support/v4/app/FragmentTransaction;->a(II)Landroid/support/v4/app/FragmentTransaction;
:cond_0
invoke-static {v0}, Lru/vtosters/lite/utils/FragAnimationKit;->animateOpen(Landroid/support/v4/app/FragmentTransaction;)V
return-void
.end method
@@ -542,6 +544,8 @@
move-result-object v0
invoke-static {v0}, Lru/vtosters/lite/utils/FragAnimationKit;->animateClose(Landroid/support/v4/app/FragmentTransaction;)V
iput-object v0, p0, Lcom/vk/core/fragments/b/a/ParentSupportFragmentManager;->c:Landroid/support/v4/app/FragmentTransaction;
return-void