diff options
author | Pankaj Garg <pgarg@codeaurora.org> | 2014-11-06 15:07:12 -0800 |
---|---|---|
committer | WebTech Code Review <code-review@localhost> | 2014-11-26 10:29:50 -0800 |
commit | aa42e9f7002450bb759d9bc5e2540deb88b97fa1 (patch) | |
tree | 189322401a6e92d2846c68315917a2539414cccf /res/anim | |
parent | 361065a73263ffef792d0cba10d8ad22434b327c (diff) | |
download | android_packages_apps_Gello-aa42e9f7002450bb759d9bc5e2540deb88b97fa1.tar.gz android_packages_apps_Gello-aa42e9f7002450bb759d9bc5e2540deb88b97fa1.tar.bz2 android_packages_apps_Gello-aa42e9f7002450bb759d9bc5e2540deb88b97fa1.zip |
Copy AppMenu framework from Chrome
- copied AppMenu framework files from
org.chromium.chrom.browser.appmenu
commit-id: fdb3ea17e8436e028e320b1a752249d36423483d
Change-Id: I01e9106cd4107fadee6951c13b7e6ac2329d98e4
Diffstat (limited to 'res/anim')
-rw-r--r-- | res/anim/menu_enter.xml | 23 | ||||
-rw-r--r-- | res/anim/menu_exit.xml | 20 |
2 files changed, 43 insertions, 0 deletions
diff --git a/res/anim/menu_enter.xml b/res/anim/menu_enter.xml new file mode 100644 index 00000000..e6c49367 --- /dev/null +++ b/res/anim/menu_enter.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright 2014 The Chromium Authors. All rights reserved. + Use of this source code is governed by a BSD-style license that can be + found in the LICENSE file. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> + <scale android:interpolator="@interpolator/transform_curve_interpolator" + android:fromXScale="0" + android:toXScale="1" + android:fromYScale="0" + android:toYScale="1" + android:pivotX="@fraction/menu_animation_pivot_x" + android:pivotY="5%" + android:duration="200" /> + <alpha android:interpolator="@android:anim/linear_interpolator" + android:fromAlpha="0" android:toAlpha="1" + android:duration="200" /> + <translate android:interpolator="@interpolator/transform_curve_interpolator" + android:fromYDelta="@dimen/menu_negative_software_vertical_offset" + android:toYDelta="0" + android:duration="200" /> +</set>
\ No newline at end of file diff --git a/res/anim/menu_exit.xml b/res/anim/menu_exit.xml new file mode 100644 index 00000000..5a2a93d7 --- /dev/null +++ b/res/anim/menu_exit.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright 2014 The Chromium Authors. All rights reserved. + Use of this source code is governed by a BSD-style license that can be + found in the LICENSE file. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> + <scale android:interpolator="@interpolator/fade_out_curve_interpolator" + android:fromXScale="1" + android:toXScale="0.5" + android:fromYScale="1" + android:toYScale="0.5" + android:pivotX="@fraction/menu_animation_pivot_x" + android:pivotY="5%" + android:duration="150" /> + <alpha android:interpolator="@interpolator/fade_out_curve_interpolator" + android:fromAlpha="1" + android:toAlpha="0" + android:duration="150" /> +</set>
\ No newline at end of file |