Browse Source

Speed up animations slightly

master
Anthony Restaino 9 years ago
parent
commit
2a9b820b54
  1. 4
      app/src/main/res/anim/fade_in_scale.xml
  2. 4
      app/src/main/res/anim/fade_out_scale.xml
  3. 4
      app/src/main/res/anim/slide_down_out.xml
  4. 2
      app/src/main/res/anim/slide_in_from_right.xml
  5. 2
      app/src/main/res/anim/slide_out_to_right.xml
  6. 2
      app/src/main/res/anim/slide_up_in.xml
  7. 4
      app/src/main/res/values/integers.xml

4
app/src/main/res/anim/fade_in_scale.xml

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/animation_time_medium"
android:fromXScale="0.85"
android:fromYScale="0.85"
android:interpolator="@android:interpolator/decelerate_cubic"
@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
android:toXScale="1.0"
android:toYScale="1.0" />
<alpha
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/animation_time_medium"
android:fromAlpha="0.0"
android:toAlpha="1.0" />
</set>

4
app/src/main/res/anim/fade_out_scale.xml

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/animation_time_medium"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:interpolator="@android:interpolator/decelerate_cubic"
@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
android:toXScale="0.85"
android:toYScale="0.85" />
<alpha
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/animation_time_medium"
android:fromAlpha="1.0"
android:toAlpha="0.0" />
</set>

4
app/src/main/res/anim/slide_down_out.xml

@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/animation_time_medium"
android:fromYDelta="0%p"
android:interpolator="@android:interpolator/accelerate_cubic"
android:toYDelta="100%p" />
<alpha
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/animation_time_medium"
android:fromAlpha="1.0"
android:toAlpha="0.0" />
</set>

2
app/src/main/res/anim/slide_in_from_right.xml

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/animation_time_medium"
android:fromXDelta="100%p"
android:interpolator="@android:interpolator/decelerate_cubic"
android:toXDelta="0%p" />

2
app/src/main/res/anim/slide_out_to_right.xml

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/animation_time_medium"
android:fromXDelta="0%p"
android:interpolator="@android:interpolator/decelerate_cubic"
android:toXDelta="100%p" />

2
app/src/main/res/anim/slide_up_in.xml

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="@android:integer/config_mediumAnimTime"
android:duration="@integer/animation_time_medium"
android:fromYDelta="100%p"
android:interpolator="@android:interpolator/decelerate_cubic"
android:toYDelta="0%p" />

4
app/src/main/res/values/integers.xml

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