Loading res/layout/longpress_options_menu.xml +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ --> <com.android.launcher3.views.OptionsPopupView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/deep_shortcuts_container" android:id="@+id/popup_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clipToPadding="false" Loading res/layout/popup_container.xml +10 −1 Original line number Diff line number Diff line Loading @@ -16,12 +16,21 @@ <com.android.launcher3.popup.PopupContainerWithArrow xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/deep_shortcuts_container" android:id="@+id/popup_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clipToPadding="false" android:clipChildren="false" android:orientation="vertical"> <LinearLayout android:id="@+id/deep_shortcuts_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:tag="@string/popup_container_iterate_children" android:elevation="@dimen/deep_shortcuts_elevation" android:orientation="vertical"/> <LinearLayout android:id="@+id/notification_container" android:layout_width="match_parent" Loading res/values-v31/colors.xml +2 −2 Original line number Diff line number Diff line Loading @@ -17,11 +17,11 @@ */ --> <resources> <color name="popup_color_primary_light">@android:color/system_neutral1_0</color> <color name="popup_color_primary_light">@android:color/system_accent2_50</color> <color name="popup_color_secondary_light">@android:color/system_neutral2_100</color> <color name="popup_color_tertiary_light">@android:color/system_neutral2_300</color> <color name="popup_color_neutral_dark">@android:color/system_neutral1_1000</color> <color name="popup_color_primary_dark">@android:color/system_neutral1_800</color> <color name="popup_color_primary_dark">@android:color/system_neutral2_800</color> <color name="popup_color_secondary_dark">@android:color/system_neutral1_900</color> <color name="popup_color_tertiary_dark">@android:color/system_neutral2_700</color> Loading res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,9 @@ <!-- View tag key used to store SpringAnimation data. --> <item type="id" name="spring_animation_tag" /> <!-- View tag key used to determine if we should fade in the child views.. --> <string name="popup_container_iterate_children" translatable="false">popup_container_iterate_children</string> <!-- Workspace --> <!-- The duration (in ms) of the fade animation on the object outlines, used when we are dragging objects around on the home screen. --> Loading src/com/android/launcher3/notification/NotificationItemView.java +10 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.launcher3.notification; import static com.android.launcher3.touch.SingleAxisSwipeDetector.HORIZONTAL; import android.animation.AnimatorSet; import android.app.Notification; import android.content.Context; import android.graphics.Color; Loading Loading @@ -92,6 +93,15 @@ public class NotificationItemView { }); } /** * Animates the background color to a new color. * @param color The color to change to. * @param animatorSetOut The AnimatorSet where we add the color animator to. */ public void updateBackgroundColor(int color, AnimatorSet animatorSetOut) { mMainView.updateBackgroundColor(color, animatorSetOut); } public void addGutter() { if (mGutter == null) { mGutter = mPopupContainer.inflateAndAdd(R.layout.notification_gutter, mRootView); Loading Loading
res/layout/longpress_options_menu.xml +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ --> <com.android.launcher3.views.OptionsPopupView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/deep_shortcuts_container" android:id="@+id/popup_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clipToPadding="false" Loading
res/layout/popup_container.xml +10 −1 Original line number Diff line number Diff line Loading @@ -16,12 +16,21 @@ <com.android.launcher3.popup.PopupContainerWithArrow xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/deep_shortcuts_container" android:id="@+id/popup_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clipToPadding="false" android:clipChildren="false" android:orientation="vertical"> <LinearLayout android:id="@+id/deep_shortcuts_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:tag="@string/popup_container_iterate_children" android:elevation="@dimen/deep_shortcuts_elevation" android:orientation="vertical"/> <LinearLayout android:id="@+id/notification_container" android:layout_width="match_parent" Loading
res/values-v31/colors.xml +2 −2 Original line number Diff line number Diff line Loading @@ -17,11 +17,11 @@ */ --> <resources> <color name="popup_color_primary_light">@android:color/system_neutral1_0</color> <color name="popup_color_primary_light">@android:color/system_accent2_50</color> <color name="popup_color_secondary_light">@android:color/system_neutral2_100</color> <color name="popup_color_tertiary_light">@android:color/system_neutral2_300</color> <color name="popup_color_neutral_dark">@android:color/system_neutral1_1000</color> <color name="popup_color_primary_dark">@android:color/system_neutral1_800</color> <color name="popup_color_primary_dark">@android:color/system_neutral2_800</color> <color name="popup_color_secondary_dark">@android:color/system_neutral1_900</color> <color name="popup_color_tertiary_dark">@android:color/system_neutral2_700</color> Loading
res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,9 @@ <!-- View tag key used to store SpringAnimation data. --> <item type="id" name="spring_animation_tag" /> <!-- View tag key used to determine if we should fade in the child views.. --> <string name="popup_container_iterate_children" translatable="false">popup_container_iterate_children</string> <!-- Workspace --> <!-- The duration (in ms) of the fade animation on the object outlines, used when we are dragging objects around on the home screen. --> Loading
src/com/android/launcher3/notification/NotificationItemView.java +10 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.launcher3.notification; import static com.android.launcher3.touch.SingleAxisSwipeDetector.HORIZONTAL; import android.animation.AnimatorSet; import android.app.Notification; import android.content.Context; import android.graphics.Color; Loading Loading @@ -92,6 +93,15 @@ public class NotificationItemView { }); } /** * Animates the background color to a new color. * @param color The color to change to. * @param animatorSetOut The AnimatorSet where we add the color animator to. */ public void updateBackgroundColor(int color, AnimatorSet animatorSetOut) { mMainView.updateBackgroundColor(color, animatorSetOut); } public void addGutter() { if (mGutter == null) { mGutter = mPopupContainer.inflateAndAdd(R.layout.notification_gutter, mRootView); Loading