diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2016-06-15 12:51:30 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2016-06-15 12:51:30 -0700 |
commit | 7d2fc8120e549eaa9542b0985aab67d172cbd682 (patch) | |
tree | 92335d428aa9379039c061bae93188c0b24135a8 /res | |
parent | b25b2c41c2fa277e16d708ad827e283efcb86452 (diff) | |
download | android_packages_apps_Trebuchet-7d2fc8120e549eaa9542b0985aab67d172cbd682.tar.gz android_packages_apps_Trebuchet-7d2fc8120e549eaa9542b0985aab67d172cbd682.tar.bz2 android_packages_apps_Trebuchet-7d2fc8120e549eaa9542b0985aab67d172cbd682.zip |
Add caret shaped all app pull up handle to page indicator.
b/28917826
> PageIndicator is also added in landscape
> Touch delegate allows the active touch area to be 36dp
Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/ic_allapps_caret.xml | 26 | ||||
-rw-r--r-- | res/layout-land/launcher.xml | 6 | ||||
-rw-r--r-- | res/layout-port/launcher.xml | 2 | ||||
-rw-r--r-- | res/layout-sw720dp/launcher.xml | 2 | ||||
-rw-r--r-- | res/values/dimens.xml | 4 |
5 files changed, 37 insertions, 3 deletions
diff --git a/res/drawable/ic_allapps_caret.xml b/res/drawable/ic_allapps_caret.xml new file mode 100644 index 000000000..34d1882dc --- /dev/null +++ b/res/drawable/ic_allapps_caret.xml @@ -0,0 +1,26 @@ +<?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. +--> +<vector + xmlns:android="http://schemas.android.com/apk/res/android" + android:height="24dp" + android:viewportHeight="48.0" + android:viewportWidth="48.0" + android:width="24dp" > + <path + android:fillColor="#FFFFFF" + android:pathData="M14.83,30.83L24,21.66l9.17,9.17L36,28 24,16 12,28z"/> +</vector> diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index d193e2f6d..8ebc30313 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -53,6 +53,12 @@ android:id="@+id/overview_panel" android:visibility="gone" /> + <com.android.launcher3.pageindicators.PageIndicatorCaretLandscape + android:id="@+id/page_indicator" + android:layout_width="48dp" + android:layout_height="@dimen/dynamic_grid_page_indicator_height" + android:layout_gravity="bottom|left"/> + <include layout="@layout/widgets_view" android:id="@+id/widgets_view" android:layout_width="match_parent" diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index 527ed54ec..d1c1b2bbb 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -52,7 +52,7 @@ <!-- Keep these behind the workspace so that they are not visible when we go into AllApps --> - <com.android.launcher3.pageindicators.PageIndicatorLine + <com.android.launcher3.pageindicators.PageIndicatorLineCaret android:id="@+id/page_indicator" android:layout_width="match_parent" android:layout_height="@dimen/dynamic_grid_page_indicator_height" /> diff --git a/res/layout-sw720dp/launcher.xml b/res/layout-sw720dp/launcher.xml index 184e688f3..33ad32324 100644 --- a/res/layout-sw720dp/launcher.xml +++ b/res/layout-sw720dp/launcher.xml @@ -55,7 +55,7 @@ <!-- Keep these behind the workspace so that they are not visible when we go into AllApps --> - <com.android.launcher3.pageindicators.PageIndicatorLine + <com.android.launcher3.pageindicators.PageIndicatorLineCaret android:id="@+id/page_indicator" android:layout_width="match_parent" android:layout_height="@dimen/dynamic_grid_page_indicator_height" /> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 64868f223..cda8c0584 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -17,7 +17,9 @@ <resources> <!-- Dynamic Grid --> <dimen name="dynamic_grid_edge_margin">6dp</dimen> - <dimen name="dynamic_grid_page_indicator_height">1dp</dimen> + <dimen name="dynamic_grid_page_indicator_height">24dp</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_overview_min_icon_zone_height">80dp</dimen> |