diff --git a/Android.mk b/Android.mk index 713d0828ad..c8a53d23d1 100644 --- a/Android.mk +++ b/Android.mk @@ -26,11 +26,13 @@ LOCAL_MODULE_TAGS := optional LOCAL_STATIC_JAVA_LIBRARIES := \ android-support-v4 \ android-support-v7-recyclerview \ - android-support-v7-palette + android-support-v7-palette \ + android-support-dynamic-animation LOCAL_SRC_FILES := \ $(call all-java-files-under, src) \ $(call all-java-files-under, src_config) \ + $(call all-java-files-under, src_flags) \ $(call all-proto-files-under, protos) LOCAL_RESOURCE_DIR := \ diff --git a/AndroidManifest-common.xml b/AndroidManifest-common.xml index ab582feb90..ad404c09a9 100644 --- a/AndroidManifest-common.xml +++ b/AndroidManifest-common.xml @@ -86,6 +86,12 @@ android:permission="android.permission.BIND_JOB_SERVICE"> + + diff --git a/build.gradle b/build.gradle index 4af0e114d9..c23a29920d 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ android { sourceSets { main { res.srcDirs = ['res'] - java.srcDirs = ['src', 'src_config'] + java.srcDirs = ['src', 'src_flags'] manifest.srcFile 'AndroidManifest-common.xml' proto.srcDirs 'protos/' } @@ -68,6 +68,7 @@ repositories { final String SUPPORT_LIBS_VERSION = '26.0.0-SNAPSHOT' dependencies { compile "com.android.support:support-v4:${SUPPORT_LIBS_VERSION}" + compile "com.android.support:support-dynamic-animation:${SUPPORT_LIBS_VERSION}" compile "com.android.support:recyclerview-v7:${SUPPORT_LIBS_VERSION}" compile "com.android.support:palette-v7:${SUPPORT_LIBS_VERSION}" compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2' diff --git a/proguard.flags b/proguard.flags index 8ee6ccd344..51abccae99 100644 --- a/proguard.flags +++ b/proguard.flags @@ -82,6 +82,10 @@ *; } +-keep class com.android.launcher3.graphics.ShadowDrawable { + public (...); +} + # Proguard will strip methods required for talkback to properly scroll to # next row when focus is on the last item of last row when using a RecyclerView # Keep optimized and shrunk proguard to prevent issues like this when using diff --git a/res/drawable-ldrtl/container_fastscroll_popup_bg.xml b/res/color-v24/all_apps_bg_hand_fill.xml similarity index 54% rename from res/drawable-ldrtl/container_fastscroll_popup_bg.xml rename to res/color-v24/all_apps_bg_hand_fill.xml index 2bbf5cd72a..1b0b53890c 100644 --- a/res/drawable-ldrtl/container_fastscroll_popup_bg.xml +++ b/res/color-v24/all_apps_bg_hand_fill.xml @@ -1,6 +1,5 @@ - - - - - - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/res/layout/all_apps_search_divider.xml b/res/color-v24/all_apps_bg_hand_fill_dark.xml similarity index 51% rename from res/layout/all_apps_search_divider.xml rename to res/color-v24/all_apps_bg_hand_fill_dark.xml index d2ef691ead..bb9c71cbcf 100644 --- a/res/layout/all_apps_search_divider.xml +++ b/res/color-v24/all_apps_bg_hand_fill_dark.xml @@ -1,5 +1,5 @@ - - \ No newline at end of file + + + + + + + \ No newline at end of file diff --git a/res/drawable-hdpi/ic_all_apps_bg_hand.png b/res/drawable-hdpi/ic_all_apps_bg_hand.png deleted file mode 100644 index 437fd374ca..0000000000 Binary files a/res/drawable-hdpi/ic_all_apps_bg_hand.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_info_launcher.png b/res/drawable-hdpi/ic_info_launcher.png deleted file mode 100644 index 11162e1e78..0000000000 Binary files a/res/drawable-hdpi/ic_info_launcher.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_remove_launcher.png b/res/drawable-hdpi/ic_remove_launcher.png deleted file mode 100644 index ad2b9af249..0000000000 Binary files a/res/drawable-hdpi/ic_remove_launcher.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_uninstall_launcher.png b/res/drawable-hdpi/ic_uninstall_launcher.png deleted file mode 100644 index 426683c6de..0000000000 Binary files a/res/drawable-hdpi/ic_uninstall_launcher.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_all_apps_bg_hand.png b/res/drawable-mdpi/ic_all_apps_bg_hand.png deleted file mode 100644 index 0a0024138e..0000000000 Binary files a/res/drawable-mdpi/ic_all_apps_bg_hand.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_info_launcher.png b/res/drawable-mdpi/ic_info_launcher.png deleted file mode 100644 index 6fbe5e3958..0000000000 Binary files a/res/drawable-mdpi/ic_info_launcher.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_remove_launcher.png b/res/drawable-mdpi/ic_remove_launcher.png deleted file mode 100644 index 2bb281d599..0000000000 Binary files a/res/drawable-mdpi/ic_remove_launcher.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_uninstall_launcher.png b/res/drawable-mdpi/ic_uninstall_launcher.png deleted file mode 100644 index bfcbc6dfa2..0000000000 Binary files a/res/drawable-mdpi/ic_uninstall_launcher.png and /dev/null differ diff --git a/res/layout/qsb_blocker_view.xml b/res/drawable-v24/ic_info_shadow.xml similarity index 70% rename from res/layout/qsb_blocker_view.xml rename to res/drawable-v24/ic_info_shadow.xml index 453eebe4f6..1fe2c46b4b 100644 --- a/res/layout/qsb_blocker_view.xml +++ b/res/drawable-v24/ic_info_shadow.xml @@ -1,12 +1,11 @@ - - \ No newline at end of file + android:src="@drawable/ic_info_no_shadow" + android:elevation="@dimen/drop_target_shadow_elevation" /> diff --git a/res/drawable/bg_white_round_rect.xml b/res/drawable-v24/ic_remove_shadow.xml similarity index 69% rename from res/drawable/bg_white_round_rect.xml rename to res/drawable-v24/ic_remove_shadow.xml index c7f786ff61..48abc10b3b 100644 --- a/res/drawable/bg_white_round_rect.xml +++ b/res/drawable-v24/ic_remove_shadow.xml @@ -5,7 +5,7 @@ you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - \ No newline at end of file + diff --git a/res/drawable/container_fastscroll_popup_bg.xml b/res/drawable-v24/ic_uninstall_shadow.xml similarity index 53% rename from res/drawable/container_fastscroll_popup_bg.xml rename to res/drawable-v24/ic_uninstall_shadow.xml index 3dc76800b0..b441b0e7b6 100644 --- a/res/drawable/container_fastscroll_popup_bg.xml +++ b/res/drawable-v24/ic_uninstall_shadow.xml @@ -1,12 +1,11 @@ - - - - - - \ No newline at end of file + diff --git a/res/drawable-xhdpi/ic_all_apps_bg_hand.png b/res/drawable-xhdpi/ic_all_apps_bg_hand.png deleted file mode 100644 index 1acb378ba8..0000000000 Binary files a/res/drawable-xhdpi/ic_all_apps_bg_hand.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_info_launcher.png b/res/drawable-xhdpi/ic_info_launcher.png deleted file mode 100644 index 041f2b3c0c..0000000000 Binary files a/res/drawable-xhdpi/ic_info_launcher.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_remove_launcher.png b/res/drawable-xhdpi/ic_remove_launcher.png deleted file mode 100644 index ff94eb8e90..0000000000 Binary files a/res/drawable-xhdpi/ic_remove_launcher.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_uninstall_launcher.png b/res/drawable-xhdpi/ic_uninstall_launcher.png deleted file mode 100644 index 2c7ab56e95..0000000000 Binary files a/res/drawable-xhdpi/ic_uninstall_launcher.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_all_apps_bg_hand.png b/res/drawable-xxhdpi/ic_all_apps_bg_hand.png deleted file mode 100644 index 09c6c8d52d..0000000000 Binary files a/res/drawable-xxhdpi/ic_all_apps_bg_hand.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_info_launcher.png b/res/drawable-xxhdpi/ic_info_launcher.png deleted file mode 100644 index 8e602da02c..0000000000 Binary files a/res/drawable-xxhdpi/ic_info_launcher.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_remove_launcher.png b/res/drawable-xxhdpi/ic_remove_launcher.png deleted file mode 100644 index 78ca0804c5..0000000000 Binary files a/res/drawable-xxhdpi/ic_remove_launcher.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_uninstall_launcher.png b/res/drawable-xxhdpi/ic_uninstall_launcher.png deleted file mode 100644 index 43aba6ec09..0000000000 Binary files a/res/drawable-xxhdpi/ic_uninstall_launcher.png and /dev/null differ diff --git a/res/drawable-xxxhdpi/ic_all_apps_bg_hand.png b/res/drawable-xxxhdpi/ic_all_apps_bg_hand.png deleted file mode 100644 index 49c004dba4..0000000000 Binary files a/res/drawable-xxxhdpi/ic_all_apps_bg_hand.png and /dev/null differ diff --git a/res/drawable-xxxhdpi/ic_info_launcher.png b/res/drawable-xxxhdpi/ic_info_launcher.png deleted file mode 100644 index 3540de1a16..0000000000 Binary files a/res/drawable-xxxhdpi/ic_info_launcher.png and /dev/null differ diff --git a/res/drawable-xxxhdpi/ic_remove_launcher.png b/res/drawable-xxxhdpi/ic_remove_launcher.png deleted file mode 100644 index 418d81ad6a..0000000000 Binary files a/res/drawable-xxxhdpi/ic_remove_launcher.png and /dev/null differ diff --git a/res/drawable-xxxhdpi/ic_uninstall_launcher.png b/res/drawable-xxxhdpi/ic_uninstall_launcher.png deleted file mode 100644 index 724437a2a5..0000000000 Binary files a/res/drawable-xxxhdpi/ic_uninstall_launcher.png and /dev/null differ diff --git a/res/drawable/all_apps_alpha_mask.png b/res/drawable/all_apps_alpha_mask.png new file mode 100644 index 0000000000..ed53ff924a Binary files /dev/null and b/res/drawable/all_apps_alpha_mask.png differ diff --git a/res/drawable/deep_shortcuts_drag_handle.xml b/res/drawable/deep_shortcuts_drag_handle.xml index 82e844d2d9..8fc3779f60 100644 --- a/res/drawable/deep_shortcuts_drag_handle.xml +++ b/res/drawable/deep_shortcuts_drag_handle.xml @@ -22,6 +22,7 @@ android:tint="?android:attr/textColorHint" > \ No newline at end of file diff --git a/res/drawable/ic_all_apps_bg_hand.xml b/res/drawable/ic_all_apps_bg_hand.xml new file mode 100644 index 0000000000..7f3fe14fb1 --- /dev/null +++ b/res/drawable/ic_all_apps_bg_hand.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/drawable/ic_all_apps_bg_icon_1.xml b/res/drawable/ic_all_apps_bg_icon_1.xml index c9c0a7549e..d226ac6000 100644 --- a/res/drawable/ic_all_apps_bg_icon_1.xml +++ b/res/drawable/ic_all_apps_bg_icon_1.xml @@ -25,7 +25,7 @@ android:pathData="M44.28,30.96c4.84-10.68,0.09-23.27-10.59-28.11S10.42,2.74,5.58,13.42 C1,23.54,6.5,35.92,16.62,40.51l0,0l-3.23,7.12C27.84,47,39.79,40.86,44.28,30.96z" /> \ No newline at end of file diff --git a/res/drawable/ic_all_apps_bg_icon_2.xml b/res/drawable/ic_all_apps_bg_icon_2.xml index b6269e3ab2..5966d9969f 100644 --- a/res/drawable/ic_all_apps_bg_icon_2.xml +++ b/res/drawable/ic_all_apps_bg_icon_2.xml @@ -26,7 +26,7 @@ c-0.25-0.58-0.9-0.99-1.89-1.1L6.2,5.99C5.39,5.91,4.74,6.08,4.32,6.44l0,0C3.7,6.97,3.55,7.88,4.01,8.96l14.54,34.09 C19,44.13,19.75,44.65,20.54,44.59L20.54,44.59z" /> diff --git a/res/drawable/ic_all_apps_bg_icon_3.xml b/res/drawable/ic_all_apps_bg_icon_3.xml index 4c255a9096..b18f8bc473 100644 --- a/res/drawable/ic_all_apps_bg_icon_3.xml +++ b/res/drawable/ic_all_apps_bg_icon_3.xml @@ -26,11 +26,11 @@ s22.31-9.99,22.31-22.31S37.5,1.27,25.18,1.27z M25.18,33.55c-5.5,0-14.35-5.1-14.35-10.6s8.32-12.19,13.82-12.19 c5.5,0,10.49,7.33,10.49,12.83S30.68,33.55,25.18,33.55z" /> diff --git a/res/drawable/ic_all_apps_bg_icon_4.xml b/res/drawable/ic_all_apps_bg_icon_4.xml index 12e05bc6bb..8eb4d90126 100644 --- a/res/drawable/ic_all_apps_bg_icon_4.xml +++ b/res/drawable/ic_all_apps_bg_icon_4.xml @@ -25,7 +25,7 @@ android:pathData="M11.53,8.02l23.39-5.73c1.61-0.39,3.25,0.6,3.64,2.21l7.64,31.19 c0.39,1.61-0.6,3.25-2.21,3.64L12.8,46.97c-1.61,0.39-3.25-0.6-3.64-2.21L3.43,21.37L11.53,8.02z" /> + android:viewportHeight="24.0" + android:tint="?android:attr/textColorPrimary" > + android:fillColor="#FFFFFFFF" + android:pathData="M12,17L12,17c0.55,0,1-0.45,1-1v-4c0-0.55-0.45-1-1-1l0,0c-0.55,0-1,0.45-1,1v4C11,16.55,11.45,17,12,17z M12,2C6.48, + 2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z M12,20c-4.41,0-8-3.59-8-8s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20zM12, + 9.1L12,9.1c0.61,0,1.1-0.49,1.1-1.1l0,0c0-0.61-0.49-1.1-1.1-1.1l0,0c-0.61,0-1.1,0.49-1.1,1.1l0,0C10.9,8.61,11.39,9.1,12,9.1z"/> diff --git a/res/drawable/ic_remove_no_shadow.xml b/res/drawable/ic_remove_no_shadow.xml new file mode 100644 index 0000000000..be7f9f354b --- /dev/null +++ b/res/drawable/ic_remove_no_shadow.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/res/drawable/ic_setting.xml b/res/drawable/ic_setting.xml index e89c158c8b..1bab18990e 100644 --- a/res/drawable/ic_setting.xml +++ b/res/drawable/ic_setting.xml @@ -19,6 +19,12 @@ Copyright (C) 2016 The Android Open Source Project android:viewportWidth="48.0" android:viewportHeight="48.0"> + android:fillColor="?android:attr/textColorPrimary" + android:pathData="M42.8,28.4l-3.88-2.9c0.06-0.5,0.08-1,0.08-1.52s-0.02-1.02-0.08-1.52l3.88-2.86c0.84-0.62,1.04-1.88, + 0.48-2.82l-3.2-5.52c-0.56-0.96-1.76-1.4-2.72-1l-4.28,1.82c-0.96-0.74-2.02-1.36-3.14-1.84l-0.54-4.4C29.28,4.8,28.28,4, + 27.18,4h-6.36c-1.1,0-2.1,0.8-2.22,1.84l-0.52,4.38c-1.14,0.48-2.2,1.1-3.16,1.84l-4.28-1.82c-0.96-0.4-2.16,0.04-2.72, + 1l-3.2,5.52c-0.56,0.96-0.36,2.2,0.48,2.84l3.88,2.9C9.02,22.98,9,23.48,9,24s0.02,1.02,0.08,1.52L5.2,28.4c-0.84,0.62-1.04, + 1.88-0.48,2.82l3.2,5.52c0.56,0.96,1.76,1.4,2.72,1l4.28-1.82c0.96,0.74,2.02,1.36,3.14,1.84l0.54,4.38C18.72,43.2,19.72, + 44,20.82,44h6.36c1.1,0,2.08-0.8,2.22-1.84l0.54-4.38c1.12-0.48,2.18-1.1,3.14-1.84l4.28,1.82c0.96,0.4,2.16-0.04, + 2.72-1l3.2-5.52C43.84,30.28,43.64,29.04,42.8,28.4z M24,31c-3.86,0-7-3.14-7-7s3.14-7,7-7s7,3.14,7,7S27.86,31,24,31z"/> diff --git a/res/drawable/ic_uninstall_no_shadow.xml b/res/drawable/ic_uninstall_no_shadow.xml new file mode 100644 index 0000000000..2a86e1042d --- /dev/null +++ b/res/drawable/ic_uninstall_no_shadow.xml @@ -0,0 +1,26 @@ + + + + + diff --git a/res/drawable/ic_wallpaper.xml b/res/drawable/ic_wallpaper.xml index b7fcfbf55b..9e9222f645 100644 --- a/res/drawable/ic_wallpaper.xml +++ b/res/drawable/ic_wallpaper.xml @@ -19,6 +19,11 @@ Copyright (C) 2016 The Android Open Source Project android:viewportWidth="48.0" android:viewportHeight="48.0"> + android:fillColor="?android:attr/textColorPrimary" + android:pathData="M8,8h13c0.56,0,1-0.44,1-1V5c0-0.56-0.44-1-1-1H8C5.8,4,4,5.8,4,8v13c0,0.56,0.44,1,1,1h2c0.56,0,1-0.44, + 1-1V8zM18.44,27.96L12,36h24l-4.4-5.86c-0.8-1.06-2.4-1.06-3.2,0l-2.46,3.28l-4.38-5.46C20.76,26.96,19.24,26.96,18.44,27.96z M34, + 17c0-1.66-1.34-3-3-3s-3,1.34-3,3s1.34,3,3,3S34,18.66,34,17z M40,4H27c-0.56,0-1,0.44-1,1v2c0,0.56,0.44,1,1,1h13v13c0, + 0.56,0.44,1,1,1h2c0.56,0,1-0.44,1-1V8C44,5.8,42.2,4,40,4z M40,40H27c-0.56,0-1,0.44-1,1v2c0,0.56,0.44,1,1,1h13c2.2, + 0,4-1.8,4-4V27c0-0.56-0.44-1-1-1h-2c-0.56,0-1,0.44-1,1V40z M7,26H5c-0.56,0-1,0.44-1,1v13c0,2.2,1.8,4,4,4h13c0.56,0,1-0.44, + 1-1v-2c0-0.56-0.44-1-1-1H8V27C8,26.44,7.56,26,7,26z"/> diff --git a/res/drawable/ic_widget.xml b/res/drawable/ic_widget.xml index 97706e36d7..de2980f09c 100644 --- a/res/drawable/ic_widget.xml +++ b/res/drawable/ic_widget.xml @@ -19,6 +19,8 @@ Copyright (C) 2016 The Android Open Source Project android:viewportWidth="48.0" android:viewportHeight="48.0"> + android:fillColor="#FFFFFFFF" + android:pathData="M26,28v12c0,1,0.8,2,2,2h12c1,0,2-1,2-2V28c0-1.2-1-2-2-2H28C26.8,26,26,26.8,26,28z M8,42h12c1.2,0,2-1,2-2V28 + c0-1.2-0.8-2-2-2H8c-1,0-2,0.8-2,2v12C6,41,7,42,8,42z M6,8v12c0,1.2,1,2,2,2h12c1.2,0,2-0.8,2-2V8c0-1-0.8-2-2-2H8C7,6,6,7,6,8z + M32.6,4.6l-8,8c-0.8,0.8-0.8,2,0,2.8l8,8c0.8,0.8,2,0.8,2.8,0l8-8c0.8-0.8,0.8-2,0-2.8l-8-8C34.6,3.8,33.4,3.8,32.6,4.6z"/> diff --git a/res/interpolator/folder_interpolator.xml b/res/interpolator/folder_interpolator.xml new file mode 100644 index 0000000000..b95d4548ff --- /dev/null +++ b/res/interpolator/folder_interpolator.xml @@ -0,0 +1,24 @@ + + + + diff --git a/res/interpolator/large_folder_preview_item_interpolator.xml b/res/interpolator/large_folder_preview_item_interpolator.xml new file mode 100644 index 0000000000..dcf01579bb --- /dev/null +++ b/res/interpolator/large_folder_preview_item_interpolator.xml @@ -0,0 +1,24 @@ + + + + diff --git a/res/layout-land/all_apps_fast_scroller.xml b/res/layout-land/all_apps_fast_scroller.xml new file mode 100644 index 0000000000..957c331741 --- /dev/null +++ b/res/layout-land/all_apps_fast_scroller.xml @@ -0,0 +1,38 @@ + + + + + + + + + \ No newline at end of file diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index ef0dfdcc6b..2bbd76d52e 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -27,7 +27,7 @@ android:id="@+id/drag_layer" android:clipChildren="false" android:clipToPadding="false" - android:background="@drawable/workspace_bg" + android:background="?attr/workspaceStatusBarScrim" android:importantForAccessibility="no" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -35,12 +35,15 @@ + + - - - + + - - + + + + + + + + \ No newline at end of file diff --git a/res/layout-sw720dp/launcher.xml b/res/layout-sw720dp/launcher.xml index 06cb550403..ca4d846f17 100644 --- a/res/layout-sw720dp/launcher.xml +++ b/res/layout-sw720dp/launcher.xml @@ -28,13 +28,14 @@ android:clipChildren="false" android:clipToPadding="false" android:importantForAccessibility="no" - android:background="@drawable/workspace_bg" + android:background="?attr/workspaceStatusBarScrim" android:layout_width="match_parent" android:layout_height="match_parent"> + + - - - - + + android:layout_height="0dp" + android:layout_weight="1" + android:clipToPadding="false"> - - - + android:orientation="vertical"> - + - - + + + + + + + + + + + android:gravity="end" + android:paddingBottom="4dp" + android:paddingEnd="12dp" + android:paddingStart="12dp" + android:paddingTop="4dp" >