diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/bg_white_pill.xml | 3 | ||||
-rw-r--r-- | res/layout-land/launcher.xml | 5 | ||||
-rw-r--r-- | res/layout-port/launcher.xml | 3 | ||||
-rw-r--r-- | res/layout-sw720dp/launcher.xml | 3 | ||||
-rw-r--r-- | res/layout/all_apps.xml | 11 | ||||
-rw-r--r-- | res/layout/all_apps_icon.xml | 5 | ||||
-rw-r--r-- | res/layout/deep_shortcut.xml | 12 | ||||
-rw-r--r-- | res/layout/widgets_view.xml | 2 | ||||
-rw-r--r-- | res/values-sw600dp-land/dimens.xml | 20 | ||||
-rw-r--r-- | res/values-sw600dp/dimens.xml | 6 | ||||
-rw-r--r-- | res/values-sw720dp/dimens.xml | 1 | ||||
-rw-r--r-- | res/values-sw768dp-port/dimens.xml | 20 | ||||
-rw-r--r-- | res/values/attrs.xml | 1 | ||||
-rw-r--r-- | res/values/colors.xml | 1 | ||||
-rw-r--r-- | res/values/config.xml | 5 | ||||
-rw-r--r-- | res/values/dimens.xml | 37 | ||||
-rw-r--r-- | res/values/styles.xml | 3 |
17 files changed, 53 insertions, 85 deletions
diff --git a/res/drawable/bg_white_pill.xml b/res/drawable/bg_white_pill.xml index 29c3145cc..186b06b67 100644 --- a/res/drawable/bg_white_pill.xml +++ b/res/drawable/bg_white_pill.xml @@ -17,6 +17,5 @@ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="@color/quantum_panel_bg_color" /> - <size android:height="48dp" /> - <corners android:radius="24dp" /> + <corners android:radius="@dimen/bg_pill_radius" /> </shape>
\ No newline at end of file diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 632aff04b..5c1fec7e3 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -44,7 +44,8 @@ android:id="@+id/hotseat" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_gravity="right" /> + android:layout_gravity="right" + launcher:layout_ignoreInsets="true" /> <include android:id="@+id/drop_target_bar" @@ -56,7 +57,7 @@ <com.android.launcher3.pageindicators.PageIndicatorCaretLandscape android:id="@+id/page_indicator" - android:layout_width="48dp" + android:layout_width="@dimen/dynamic_grid_page_indicator_height" android:layout_height="@dimen/dynamic_grid_page_indicator_height" android:layout_gravity="bottom|left"/> diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index 0321631ca..b394fa835 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -45,7 +45,8 @@ <include layout="@layout/hotseat" android:id="@+id/hotseat" android:layout_width="match_parent" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + launcher:layout_ignoreInsets="true" /> <include layout="@layout/overview_panel" android:id="@+id/overview_panel" diff --git a/res/layout-sw720dp/launcher.xml b/res/layout-sw720dp/launcher.xml index 86544d3b2..b59c715d7 100644 --- a/res/layout-sw720dp/launcher.xml +++ b/res/layout-sw720dp/launcher.xml @@ -44,7 +44,8 @@ <include layout="@layout/hotseat" android:id="@+id/hotseat" android:layout_width="match_parent" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + launcher:layout_ignoreInsets="true" /> <include android:id="@+id/drop_target_bar" diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml index ad1fa8280..822c8b687 100644 --- a/res/layout/all_apps.xml +++ b/res/layout/all_apps.xml @@ -22,8 +22,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:paddingBottom="@dimen/container_bounds_inset" - android:paddingTop="@dimen/container_bounds_inset" launcher:revealBackground="@drawable/quantum_panel_shape"> <View @@ -62,12 +60,10 @@ android:layout_width="match_parent" android:layout_height="@dimen/all_apps_search_bar_height" android:layout_gravity="center|top" - android:paddingLeft="@dimen/container_fastscroll_thumb_max_width" - android:paddingRight="@dimen/container_fastscroll_thumb_max_width" + android:paddingTop="@dimen/all_apps_search_bar_margin_top" android:gravity="center|bottom" android:orientation="horizontal" - android:saveEnabled="false" - android:paddingTop="@dimen/all_apps_search_bar_margin_top" > + android:saveEnabled="false"> <TextView android:layout_width="wrap_content" @@ -87,13 +83,14 @@ android:layout_height="match_parent" android:background="@android:color/transparent" android:focusableInTouchMode="true" - android:gravity="start|center_vertical" + android:gravity="center" android:imeOptions="actionSearch|flagNoExtractUi" android:inputType="text|textNoSuggestions|textCapWords" android:maxLines="1" android:scrollHorizontally="true" android:singleLine="true" android:textColor="#4c4c4c" + android:contentDescription="@string/all_apps_search_bar_hint" android:textColorHint="@drawable/all_apps_search_hint" android:textSize="16sp" /> </FrameLayout> diff --git a/res/layout/all_apps_icon.xml b/res/layout/all_apps_icon.xml index 3836fed89..3d4bef70c 100644 --- a/res/layout/all_apps_icon.xml +++ b/res/layout/all_apps_icon.xml @@ -21,8 +21,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" - android:paddingTop="@dimen/all_apps_icon_top_bottom_padding" - android:paddingBottom="@dimen/all_apps_icon_top_bottom_padding" android:focusable="true" - launcher:iconDisplay="all_apps" /> + launcher:iconDisplay="all_apps" + launcher:centerVertically="true" /> diff --git a/res/layout/deep_shortcut.xml b/res/layout/deep_shortcut.xml index b87923564..089546033 100644 --- a/res/layout/deep_shortcut.xml +++ b/res/layout/deep_shortcut.xml @@ -16,5 +16,13 @@ <com.android.launcher3.shortcuts.DeepShortcutView xmlns:android="http://schemas.android.com/apk/res/android" - style="@style/Icon.DeepShortcut" - android:focusable="true"/> + android:layout_width="@dimen/bg_pill_width" + android:layout_height="@dimen/bg_pill_height" + android:elevation="@dimen/deep_shortcuts_elevation" + android:background="@drawable/bg_white_pill"> + + <com.android.launcher3.BubbleTextView + android:id="@+id/deep_shortcut" + style="@style/Icon.DeepShortcut" + android:focusable="true"/> +</com.android.launcher3.shortcuts.DeepShortcutView> diff --git a/res/layout/widgets_view.xml b/res/layout/widgets_view.xml index 74f7ca10b..c4431be25 100644 --- a/res/layout/widgets_view.xml +++ b/res/layout/widgets_view.xml @@ -22,8 +22,6 @@ android:id="@+id/widgets_view" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingTop="@dimen/container_bounds_inset" - android:paddingBottom="@dimen/container_bounds_inset" android:descendantFocusability="afterDescendants" launcher:revealBackground="@drawable/quantum_panel_shape_dark" android:theme="@style/WidgetContainerTheme"> diff --git a/res/values-sw600dp-land/dimens.xml b/res/values-sw600dp-land/dimens.xml deleted file mode 100644 index 1f97d2460..000000000 --- a/res/values-sw600dp-land/dimens.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - 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 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<resources> -<!-- Container --> - <dimen name="container_max_width">736dp</dimen> -</resources> diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml index 85a436cf9..283808805 100644 --- a/res/values-sw600dp/dimens.xml +++ b/res/values-sw600dp/dimens.xml @@ -15,21 +15,15 @@ --> <resources> -<!-- Container --> - <dimen name="container_min_margin">16dp</dimen> - <!-- All Apps --> <dimen name="all_apps_grid_view_start_margin">0dp</dimen> <dimen name="all_apps_grid_section_text_size">26sp</dimen> - <dimen name="all_apps_icon_top_bottom_padding">12dp</dimen> <dimen name="all_apps_background_canvas_width">850dp</dimen> <dimen name="all_apps_background_canvas_height">525dp</dimen> - <dimen name="all_apps_icon_width_gap">36dp</dimen> <!-- Widget tray --> <dimen name="widget_section_indent">56dp</dimen> - <!-- DragController --> <dimen name="drag_flingToDeleteMinVelocity">-1000dp</dimen> </resources> diff --git a/res/values-sw720dp/dimens.xml b/res/values-sw720dp/dimens.xml index c2d20a310..358d9b6a0 100644 --- a/res/values-sw720dp/dimens.xml +++ b/res/values-sw720dp/dimens.xml @@ -18,7 +18,6 @@ <!-- All Apps --> <dimen name="all_apps_button_scale_down">8dp</dimen> <dimen name="all_apps_search_bar_height">54dp</dimen> - <dimen name="all_apps_icon_top_bottom_padding">14dp</dimen> <dimen name="all_apps_empty_search_message_top_offset">64dp</dimen> <dimen name="all_apps_empty_search_bg_top_offset">180dp</dimen> diff --git a/res/values-sw768dp-port/dimens.xml b/res/values-sw768dp-port/dimens.xml deleted file mode 100644 index 6fb2bf69a..000000000 --- a/res/values-sw768dp-port/dimens.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2016 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - 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 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<resources> -<!-- Container --> - <dimen name="container_max_width">736dp</dimen> -</resources> diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 308c71c41..3cfaf02d0 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -29,6 +29,7 @@ </attr> <attr name="deferShadowGeneration" format="boolean" /> <attr name="customShadows" format="boolean" /> + <attr name="centerVertically" format="boolean" /> </declare-styleable> <!-- PagedView specific attributes. These attributes are used to customize diff --git a/res/values/colors.xml b/res/values/colors.xml index 15d4f5292..21d9d5c93 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -37,6 +37,7 @@ <color name="outline_color">#FFFFFFFF</color> <color name="all_apps_divider_color">#1E000000</color> <color name="all_apps_caret_color">#FFFFFFFF</color> + <color name="all_apps_caret_shadow_color">#22000000</color> <color name="all_apps_container_color">#FFF2F2F2</color> <color name="spring_loaded_panel_color">#40FFFFFF</color> diff --git a/res/values/config.xml b/res/values/config.xml index a678958bb..bdedff0df 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -86,6 +86,11 @@ <!-- View ID used by cell layout to jail its content --> <item type="id" name="cell_layout_jail_id" /> +<!-- Deep shortcuts --> + <integer name="config_deepShortcutOpenDuration">300</integer> + <integer name="config_deepShortcutOpenStagger">20</integer> + <integer name="config_deepShortcutHoverDuration">120</integer> + <!-- Accessibility actions --> <item type="id" name="action_remove" /> <item type="id" name="action_uninstall" /> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 38775f14f..54b3d091d 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -16,20 +16,26 @@ <resources> <!-- Dynamic Grid --> - <dimen name="dynamic_grid_edge_margin">6dp</dimen> - <dimen name="dynamic_grid_page_indicator_height">24dp</dimen> + <dimen name="dynamic_grid_edge_margin">8dp</dimen> + <dimen name="dynamic_grid_page_indicator_height">28dp</dimen> <dimen name="dynamic_grid_page_indicator_line_height">1dp</dimen> <dimen name="dynamic_grid_page_indicator_extra_touch_height">12dp</dimen> - <dimen name="dynamic_grid_icon_drawable_padding">4dp</dimen> - <dimen name="dynamic_grid_workspace_page_spacing">8dp</dimen> + <dimen name="dynamic_grid_page_indicator_gutter_width_left_nav_bar">38dp</dimen> + <dimen name="dynamic_grid_page_indicator_gutter_width_right_nav_bar">48dp</dimen> + <dimen name="dynamic_grid_icon_drawable_padding">8dp</dimen> <dimen name="dynamic_grid_overview_min_icon_zone_height">80dp</dimen> <dimen name="dynamic_grid_overview_max_icon_zone_height">120dp</dimen> <dimen name="dynamic_grid_overview_bar_item_width">80dp</dimen> - <dimen name="dynamic_grid_overview_bar_spacer_width">20dp</dimen> - + <dimen name="dynamic_grid_overview_bar_spacer_width">25dp</dimen> + <dimen name="dynamic_grid_hotseat_height">88dp</dimen> + <dimen name="dynamic_grid_hotseat_top_padding">12dp</dimen> + <dimen name="dynamic_grid_hotseat_gutter_width">24dp</dimen> <dimen name="dynamic_grid_workspace_top_padding">12dp</dimen> + <dimen name="dynamic_grid_workspace_page_spacing">8dp</dimen> <!-- Minimum space between workspace and hotseat in spring loaded mode --> <dimen name="dynamic_grid_min_spring_loaded_space">8dp</dimen> + <dimen name="dynamic_grid_container_land_left_padding">118dp</dimen> + <dimen name="dynamic_grid_container_land_right_padding">66dp</dimen> <!-- Drop target bar --> <dimen name="dynamic_grid_drop_target_size">48dp</dimen> @@ -54,28 +60,24 @@ <dimen name="container_fastscroll_popup_size">72dp</dimen> <dimen name="container_fastscroll_popup_text_size">48dp</dimen> - <item name="container_margin" format="fraction" type="fraction">0%</item> - <dimen name="container_min_margin">8dp</dimen> - <dimen name="container_max_width">0dp</dimen> - <!-- All Apps --> <dimen name="all_apps_button_scale_down">0dp</dimen> <dimen name="all_apps_grid_view_start_margin">0dp</dimen> <dimen name="all_apps_grid_section_y_offset">8dp</dimen> <dimen name="all_apps_grid_section_text_size">24sp</dimen> <dimen name="all_apps_search_bar_height">60dp</dimen> - <dimen name="all_apps_search_bar_margin_top">5dp</dimen> + <dimen name="all_apps_search_bar_margin_top">12dp</dimen> <dimen name="all_apps_search_bar_icon_margin_right">4dp</dimen> <dimen name="all_apps_search_bar_icon_margin_top">1dp</dimen> - <dimen name="all_apps_icon_top_bottom_padding">8dp</dimen> - <dimen name="all_apps_icon_width_gap">24dp</dimen> <dimen name="all_apps_list_bottom_padding">8dp</dimen> <dimen name="all_apps_empty_search_message_top_offset">40dp</dimen> <dimen name="all_apps_empty_search_bg_top_offset">144dp</dimen> <dimen name="all_apps_background_canvas_width">700dp</dimen> <dimen name="all_apps_background_canvas_height">475dp</dimen> <dimen name="all_apps_caret_stroke_width">2dp</dimen> - <dimen name="all_apps_caret_inset">8dp</dimen> + <dimen name="all_apps_caret_shadow_spread">1dp</dimen> + <dimen name="all_apps_caret_size">13dp</dimen> + <dimen name="all_apps_caret_workspace_offset">4dp</dimen> <!-- Search bar in All Apps --> <dimen name="all_apps_header_max_elevation">3dp</dimen> @@ -85,6 +87,7 @@ <dimen name="all_apps_divider_margin_vertical">8dp</dimen> <dimen name="all_apps_bezel_swipe_height">24dp</dimen> + <!-- Widget tray --> <dimen name="widget_preview_label_vertical_padding">8dp</dimen> <dimen name="widget_preview_label_horizontal_padding">8dp</dimen> @@ -152,12 +155,16 @@ <!-- Deep shortcuts --> <dimen name="deep_shortcuts_elevation">9dp</dimen> - <dimen name="deep_shortcuts_width">180dp</dimen> + <dimen name="bg_pill_width">180dp</dimen> + <dimen name="bg_pill_height">48dp</dimen> + <dimen name="bg_pill_radius">24dp</dimen> <dimen name="deep_shortcuts_spacing">4dp</dimen> <dimen name="deep_shortcuts_drag_view_scale">6dp</dimen> <!-- an icon with shortcuts must be dragged this much distance away from the nearest edge of the shortcut container before the container is removed. --> <dimen name="deep_shortcuts_start_drag_threshold">35dp</dimen> <dimen name="deep_shortcut_icon_size">36dp</dimen> + <dimen name="deep_shortcuts_arrow_horizontal_offset">19dp</dimen> + <dimen name="deep_shortcut_anim_translation_y">5dp</dimen> </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index 3e827a643..532b701d0 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -78,10 +78,7 @@ </style> <style name="Icon.DeepShortcut"> - <item name="android:background">@drawable/bg_white_pill</item> <item name="android:gravity">start|center_vertical</item> - <item name="android:minWidth">@dimen/deep_shortcuts_width</item> - <item name="android:maxWidth">@dimen/deep_shortcuts_width</item> <item name="android:elevation">@dimen/deep_shortcuts_elevation</item> <item name="android:paddingLeft">7dp</item> <item name="android:drawablePadding">12dp</item> |