From 42310965fa2c0d2c91bea0a76730a21f6dd308a2 Mon Sep 17 00:00:00 2001 From: Christian Robertson Date: Sun, 14 Sep 2014 02:14:46 -0400 Subject: Customized ripple animation for navigation bar To implement the new gel-cap shaped ripple I resurrected the onDraw and setPressed methods from the KitKat implementation. The KitKat animation timings were adjusted to match the material ripple, but the structure of the animators is the same as KitKat. Since the new ripple is drawn directly to the canvas, the references to the KitKat background image were removed. The LogInterpolator is copied from the framework Ripple to match the material animation curves. Bug: 17112935 Change-Id: If6a3eb92de794b526338166bf8cb096eb9764cf6 --- packages/SystemUI/res/layout-sw600dp/navigation_bar.xml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'packages/SystemUI/res/layout-sw600dp') diff --git a/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml b/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml index b5983bb..c2733fb 100644 --- a/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml +++ b/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml @@ -59,7 +59,6 @@ android:src="@drawable/ic_sysbar_back" systemui:keyCode="4" android:layout_weight="0" - android:background="@drawable/ripple_drawable" android:contentDescription="@string/accessibility_back" /> + android:contentDescription="@string/accessibility_ime_switch_button" /> @@ -205,7 +200,6 @@ android:src="@drawable/ic_sysbar_back" systemui:keyCode="4" android:layout_weight="0" - android:background="@drawable/ripple_drawable" android:contentDescription="@string/accessibility_back" /> + android:contentDescription="@string/accessibility_menu" /> + android:scaleType="centerInside" /> -- cgit v1.1