Speed up animations slightly

This commit is contained in:
Anthony Restaino 2016-07-11 22:31:01 -04:00
parent e19d08513b
commit 2a9b820b54
7 changed files with 13 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?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">
<scale <scale
android:duration="@android:integer/config_mediumAnimTime" android:duration="@integer/animation_time_medium"
android:fromXScale="0.85" android:fromXScale="0.85"
android:fromYScale="0.85" android:fromYScale="0.85"
android:interpolator="@android:interpolator/decelerate_cubic" android:interpolator="@android:interpolator/decelerate_cubic"
@ -10,7 +10,7 @@
android:toXScale="1.0" android:toXScale="1.0"
android:toYScale="1.0" /> android:toYScale="1.0" />
<alpha <alpha
android:duration="@android:integer/config_mediumAnimTime" android:duration="@integer/animation_time_medium"
android:fromAlpha="0.0" android:fromAlpha="0.0"
android:toAlpha="1.0" /> android:toAlpha="1.0" />
</set> </set>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?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">
<scale <scale
android:duration="@android:integer/config_mediumAnimTime" android:duration="@integer/animation_time_medium"
android:fromXScale="1.0" android:fromXScale="1.0"
android:fromYScale="1.0" android:fromYScale="1.0"
android:interpolator="@android:interpolator/decelerate_cubic" android:interpolator="@android:interpolator/decelerate_cubic"
@ -10,7 +10,7 @@
android:toXScale="0.85" android:toXScale="0.85"
android:toYScale="0.85" /> android:toYScale="0.85" />
<alpha <alpha
android:duration="@android:integer/config_mediumAnimTime" android:duration="@integer/animation_time_medium"
android:fromAlpha="1.0" android:fromAlpha="1.0"
android:toAlpha="0.0" /> android:toAlpha="0.0" />
</set> </set>

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?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">
<translate <translate
android:duration="@android:integer/config_mediumAnimTime" android:duration="@integer/animation_time_medium"
android:fromYDelta="0%p" android:fromYDelta="0%p"
android:interpolator="@android:interpolator/accelerate_cubic" android:interpolator="@android:interpolator/accelerate_cubic"
android:toYDelta="100%p" /> android:toYDelta="100%p" />
<alpha <alpha
android:duration="@android:integer/config_mediumAnimTime" android:duration="@integer/animation_time_medium"
android:fromAlpha="1.0" android:fromAlpha="1.0"
android:toAlpha="0.0" /> android:toAlpha="0.0" />
</set> </set>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?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">
<translate <translate
android:duration="@android:integer/config_mediumAnimTime" android:duration="@integer/animation_time_medium"
android:fromXDelta="100%p" android:fromXDelta="100%p"
android:interpolator="@android:interpolator/decelerate_cubic" android:interpolator="@android:interpolator/decelerate_cubic"
android:toXDelta="0%p" /> android:toXDelta="0%p" />

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?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">
<translate <translate
android:duration="@android:integer/config_mediumAnimTime" android:duration="@integer/animation_time_medium"
android:fromXDelta="0%p" android:fromXDelta="0%p"
android:interpolator="@android:interpolator/decelerate_cubic" android:interpolator="@android:interpolator/decelerate_cubic"
android:toXDelta="100%p" /> android:toXDelta="100%p" />

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?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">
<translate <translate
android:duration="@android:integer/config_mediumAnimTime" android:duration="@integer/animation_time_medium"
android:fromYDelta="100%p" android:fromYDelta="100%p"
android:interpolator="@android:interpolator/decelerate_cubic" android:interpolator="@android:interpolator/decelerate_cubic"
android:toYDelta="0%p" /> android:toYDelta="0%p" />

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="animation_time_medium">350</integer>
</resources>