Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #9034 from JosJuice/android-menu-animation-rtl
Android: Take RTL layout into account for menu animations
- Loading branch information
Showing
9 changed files
with
90 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
|
||
| <objectAnimator | ||
| android:propertyName="translationX" | ||
| android:valueType="floatType" | ||
| android:valueFrom="-1280dp" | ||
| android:valueTo="0" | ||
| android:interpolator="@android:interpolator/decelerate_quad" | ||
| android:duration="300"/> | ||
|
|
||
| <objectAnimator | ||
| android:propertyName="alpha" | ||
| android:valueType="floatType" | ||
| android:valueFrom="0" | ||
| android:valueTo="1" | ||
| android:interpolator="@android:interpolator/accelerate_quad" | ||
| android:duration="300"/> | ||
|
|
||
| </set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
|
||
| <objectAnimator | ||
| android:propertyName="translationX" | ||
| android:valueType="floatType" | ||
| android:valueFrom="1280dp" | ||
| android:valueTo="0" | ||
| android:interpolator="@android:interpolator/decelerate_quad" | ||
| android:duration="300"/> | ||
|
|
||
| <objectAnimator | ||
| android:propertyName="alpha" | ||
| android:valueType="floatType" | ||
| android:valueFrom="0" | ||
| android:valueTo="1" | ||
| android:interpolator="@android:interpolator/accelerate_quad" | ||
| android:duration="300"/> | ||
|
|
||
| </set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
|
||
| <!-- This animation is used ONLY when a submenu is replaced. --> | ||
| <objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:propertyName="translationX" | ||
| android:valueType="floatType" | ||
| android:valueFrom="0" | ||
| android:valueTo="-1280dp" | ||
| android:interpolator="@android:interpolator/decelerate_quad" | ||
| android:duration="200"/> | ||
|
|
||
| <objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:propertyName="alpha" | ||
| android:valueType="floatType" | ||
| android:valueFrom="1" | ||
| android:valueTo="0" | ||
| android:interpolator="@android:interpolator/decelerate_quad" | ||
| android:duration="200"/> | ||
|
|
||
| </set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
|
||
| <!-- This animation is used ONLY when a submenu is replaced. --> | ||
| <objectAnimator | ||
| android:propertyName="translationX" | ||
| android:valueType="floatType" | ||
| android:valueFrom="0" | ||
| android:valueTo="1280dp" | ||
| android:interpolator="@android:interpolator/decelerate_quad" | ||
| android:duration="200"/> | ||
|
|
||
| <objectAnimator | ||
| android:propertyName="alpha" | ||
| android:valueType="floatType" | ||
| android:valueFrom="1" | ||
| android:valueTo="0" | ||
| android:interpolator="@android:interpolator/decelerate_quad" | ||
| android:duration="200"/> | ||
|
|
||
| </set> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.