diff options
author | Gilles Debunne <debunne@google.com> | 2011-07-08 16:10:29 -0700 |
---|---|---|
committer | Gilles Debunne <debunne@google.com> | 2011-07-18 17:44:23 -0700 |
commit | 88160de28398fff813b13f011ba3c570fe84b507 (patch) | |
tree | 7b9efd9366039fe1e03f1f43cfc4bf29340e21b4 | |
parent | 3ad4d3ce01f173e80e0ebb751c4a8913aef5648a (diff) | |
download | frameworks_base-88160de28398fff813b13f011ba3c570fe84b507.zip frameworks_base-88160de28398fff813b13f011ba3c570fe84b507.tar.gz frameworks_base-88160de28398fff813b13f011ba3c570fe84b507.tar.bz2 |
Layout changes in Settings
Conforming to the mocks: changing padding, height... on phones
and 7".
Change-Id: I8aa1fc78002fb19932037714c67ebeba7b707ef4
-rw-r--r-- | core/res/res/layout-sw600dp/preference_list_content.xml | 1 | ||||
-rw-r--r-- | core/res/res/values-land/dimens.xml | 2 | ||||
-rw-r--r-- | core/res/res/values-sw600dp/dimens.xml | 9 | ||||
-rw-r--r-- | core/res/res/values-w1024dp/dimens.xml | 23 | ||||
-rw-r--r-- | core/res/res/values-w1280dp/dimens.xml | 1 | ||||
-rw-r--r-- | core/res/res/values/dimens.xml | 4 |
6 files changed, 34 insertions, 6 deletions
diff --git a/core/res/res/layout-sw600dp/preference_list_content.xml b/core/res/res/layout-sw600dp/preference_list_content.xml index a5320a7..5b67d71 100644 --- a/core/res/res/layout-sw600dp/preference_list_content.xml +++ b/core/res/res/layout-sw600dp/preference_list_content.xml @@ -46,7 +46,6 @@ android:layout_weight="1" android:paddingTop="16dp" android:paddingBottom="16dp" - android:drawSelectorOnTop="false" android:cacheColorHint="@android:color/transparent" android:listPreferredItemHeight="48dp" diff --git a/core/res/res/values-land/dimens.xml b/core/res/res/values-land/dimens.xml index ec2313c..388eb38 100644 --- a/core/res/res/values-land/dimens.xml +++ b/core/res/res/values-land/dimens.xml @@ -25,8 +25,6 @@ <dimen name="password_keyboard_key_height_numeric">60dip</dimen> <!-- Default correction for the space key in the password keyboard --> <dimen name="password_keyboard_spacebar_vertical_correction">2dip</dimen> - <dimen name="preference_screen_side_margin">16dp</dimen> - <dimen name="preference_screen_side_margin_negative">-20dp</dimen> <dimen name="preference_widget_width">72dp</dimen> <!-- Default height of an action bar. --> diff --git a/core/res/res/values-sw600dp/dimens.xml b/core/res/res/values-sw600dp/dimens.xml index 17bf561..553632b 100644 --- a/core/res/res/values-sw600dp/dimens.xml +++ b/core/res/res/values-sw600dp/dimens.xml @@ -45,6 +45,13 @@ <dimen name="keyguard_pattern_unlock_status_line_font_size">14sp</dimen> <!-- Preference activity, vertical padding for the header list --> - <dimen name="reference_screen_header_vertical_padding">16dp</dimen> + <dimen name="preference_screen_header_vertical_padding">16dp</dimen> + + <!-- Reduce the margin when using dual pane --> + <!-- Preference activity side margins --> + <dimen name="preference_screen_side_margin">0dp</dimen> + <!-- Preference activity side margins negative--> + <dimen name="preference_screen_side_margin_negative">-4dp</dimen> + </resources> diff --git a/core/res/res/values-w1024dp/dimens.xml b/core/res/res/values-w1024dp/dimens.xml new file mode 100644 index 0000000..4d6a4da --- /dev/null +++ b/core/res/res/values-w1024dp/dimens.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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> + <!-- Increase size (used to be 0 for dual pane --> + <!-- Preference activity side margins --> + <dimen name="preference_screen_side_margin">48dp</dimen> + <!-- Preference activity side margins negative--> + <dimen name="preference_screen_side_margin_negative">-52dp</dimen> +</resources> diff --git a/core/res/res/values-w1280dp/dimens.xml b/core/res/res/values-w1280dp/dimens.xml index e67b3a9..28aea55 100644 --- a/core/res/res/values-w1280dp/dimens.xml +++ b/core/res/res/values-w1280dp/dimens.xml @@ -18,6 +18,7 @@ --> <resources> <dimen name="preference_screen_side_margin">96dp</dimen> + <!-- Compensate for double margin : preference_screen_side_margin + 4 (frame background shadow) = -preference_screen_side_margin_negative --> <dimen name="preference_screen_side_margin_negative">-100dp</dimen> <dimen name="preference_widget_width">64dp</dimen> <!-- Preference fragment padding, bottom --> diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index 73f636f..7aabf80 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -67,9 +67,9 @@ <dimen name="multiwaveview_hit_radius">60dip</dimen> <!-- Preference activity side margins --> - <dimen name="preference_screen_side_margin">0dp</dimen> + <dimen name="preference_screen_side_margin">16dp</dimen> <!-- Preference activity side margins negative--> - <dimen name="preference_screen_side_margin_negative">0dp</dimen> + <dimen name="preference_screen_side_margin_negative">16dp</dimen> <!-- Preference activity top margin --> <dimen name="preference_screen_top_margin">0dp</dimen> <!-- Preference activity bottom margin --> |