diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2014-04-24 14:48:48 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2014-04-25 17:24:18 -0700 |
commit | 769630c8956fa844545d964166da90cc802fabac (patch) | |
tree | ecb9c4f835c026f373f76ca85bf13868399cbf2b /res/values-sw600dp | |
parent | 1102f76e5852d4cc482264e67c52cabf85d7a51d (diff) | |
download | packages_apps_Settings-769630c8956fa844545d964166da90cc802fabac.zip packages_apps_Settings-769630c8956fa844545d964166da90cc802fabac.tar.gz packages_apps_Settings-769630c8956fa844545d964166da90cc802fabac.tar.bz2 |
Settings new dashboard - part 2
Introduce the new Dashboard (a grid like presentation of
Settings top categories) per UX specification.
- the Dashboard is composed of "categories" and in each of them
you have "tiles"
- implement a new layout for showing top categories
(DashboardContainerView). This layout basically acts like a
grid
- depending on the device configuration make the grid with 1
column in portrait / 2 colums in landscape (phones) OR 2 columns
in portrait and 3 in landscape (tablets)
- take care of Accounts adding and removing (as it changes the
number of tiles to show)
Also remove all the old code related to Headers
Change-Id: Ie29944132c1b4c3f7b073d5a7d4453b8f5ec19a7
Diffstat (limited to 'res/values-sw600dp')
-rw-r--r-- | res/values-sw600dp/config.xml | 22 | ||||
-rwxr-xr-x | res/values-sw600dp/dimens.xml | 4 |
2 files changed, 26 insertions, 0 deletions
diff --git a/res/values-sw600dp/config.xml b/res/values-sw600dp/config.xml new file mode 100644 index 0000000..543dfee --- /dev/null +++ b/res/values-sw600dp/config.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <!-- Dashboard number of columns --> + <integer name="dashboard_num_columns">2</integer> + +</resources> diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml index 4f4a221..154b34f 100755 --- a/res/values-sw600dp/dimens.xml +++ b/res/values-sw600dp/dimens.xml @@ -38,4 +38,8 @@ <dimen name="keyguard_appwidget_picker_margin_left">2dip</dimen> <dimen name="keyguard_appwidget_picker_margin_right">2dip</dimen> <integer name="keyguard_appwidget_picker_cols">2</integer> + + <!-- Dashboard padding between each tiles within the layout --> + <dimen name="dashboard_cell_gap">8dp</dimen> + </resources> |