Merge pull request #4094 from ByteHamster/fragment-transition-speed

Made fragment transition a bit faster
This commit is contained in:
H. Lehmann 2020-05-01 14:30:40 +02:00 committed by GitHub
commit df47dd37ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 6 deletions

View File

@ -2,7 +2,7 @@
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<alpha
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/fragment_transition_duration"
android:fromAlpha="0.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:toAlpha="1.0" />

View File

@ -2,7 +2,7 @@
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/fragment_transition_duration"
android:fromAlpha="1.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:toAlpha="0.0" />

View File

@ -4,5 +4,6 @@
<translate
android:fromXDelta="-100%" android:toXDelta="0%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="@android:integer/config_mediumAnimTime"/>
android:duration="@integer/fragment_transition_duration"
android:interpolator="@android:anim/accelerate_decelerate_interpolator" />
</set>

View File

@ -4,5 +4,6 @@
<translate
android:fromXDelta="0%" android:toXDelta="-100%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="@android:integer/config_mediumAnimTime" />
android:duration="@integer/fragment_transition_duration"
android:interpolator="@android:anim/accelerate_decelerate_interpolator" />
</set>

View File

@ -4,5 +4,6 @@
<translate
android:fromXDelta="100%" android:toXDelta="0%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="@android:integer/config_mediumAnimTime"/>
android:duration="@integer/fragment_transition_duration"
android:interpolator="@android:anim/accelerate_decelerate_interpolator" />
</set>

View File

@ -4,5 +4,6 @@
<translate
android:fromXDelta="0%" android:toXDelta="100%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="@android:integer/config_mediumAnimTime" />
android:duration="@integer/fragment_transition_duration"
android:interpolator="@android:anim/accelerate_decelerate_interpolator" />
</set>

View File

@ -1,3 +1,4 @@
<resources>
<integer name="episode_cache_size_unlimited">-1</integer>
<integer name="fragment_transition_duration">300</integer>
</resources>