diff options
author | Andrew Flynn <flynn@google.com> | 2012-02-29 13:33:22 -0800 |
---|---|---|
committer | Andrew Flynn <flynn@google.com> | 2012-02-29 17:30:37 -0800 |
commit | 0dca1ec41479a74f8da080224fa0c7eacab674d6 (patch) | |
tree | bad4a2d319a11c4da938122bd994485a59d0dc2a /res/values-sw600dp | |
parent | 79b79dd57911b9f79d4fb872e70d37ee90b0cc64 (diff) | |
download | packages_apps_trebuchet-0dca1ec41479a74f8da080224fa0c7eacab674d6.zip packages_apps_trebuchet-0dca1ec41479a74f8da080224fa0c7eacab674d6.tar.gz packages_apps_trebuchet-0dca1ec41479a74f8da080224fa0c7eacab674d6.tar.bz2 |
New small/large screen division for Launcher.
Previously the dp division between the two was set at 600dp
(7" tablets). This has now been bumped up to 720dp
(10" tablets).
Change-Id: I1f0419e504fc3bb606156c1cf6fbe03956274184
Diffstat (limited to 'res/values-sw600dp')
-rw-r--r-- | res/values-sw600dp/config.xml | 26 | ||||
-rw-r--r-- | res/values-sw600dp/dimens.xml | 78 | ||||
-rw-r--r-- | res/values-sw600dp/styles.xml | 167 | ||||
-rw-r--r-- | res/values-sw600dp/wallpapers.xml | 32 |
4 files changed, 31 insertions, 272 deletions
diff --git a/res/values-sw600dp/config.xml b/res/values-sw600dp/config.xml index 7a07898..a701e69 100644 --- a/res/values-sw600dp/config.xml +++ b/res/values-sw600dp/config.xml @@ -1,26 +1,12 @@ <resources> - <bool name="config_largeHeap">true</bool> - -<!-- AllApps/Customize/AppsCustomize --> - <!-- Out of 100, the percent to shrink the workspace during spring loaded mode. --> - <integer name="config_workspaceSpringLoadShrinkPercentage">90</integer> - -<!-- Workspace --> - <!-- Whether or not the drop targets drop down as opposed to fade in --> - <bool name="config_useDropTargetDownTransition">true</bool> - <!-- Whether or not to fade the side pages --> - <bool name="config_workspaceFadeAdjacentScreens">true</bool> - - <!-- When dragging items on the workspace, how much bigger (in pixels) the dragged view - should be, as compared to the original view. If 0, it will not be scaled at all. - Should be an even number, for pixel alignment. --> - <integer name="config_dragViewExtraPixels">0</integer> - - <!-- When shrinking the workspace, this is the percentage of its original size. --> - <integer name="config_workspaceShrinkPercent">17</integer> + <integer name="cell_count_x">6</integer> + <integer name="cell_count_y">6</integer> + <integer name="hotseat_cell_count">7</integer> + <integer name="hotseat_all_apps_index">3</integer> +<!-- Folders --> <!-- Folder max bounds and max number of items. Note: folder_max_count_x * folder_max_count_y - >= folder_max_num_items. When these are set to -1, they are automatically determined. --> + >= folder_max_num_items. When these are set to -1, they are automatically determined. --> <integer name="folder_max_count_x">-1</integer> <integer name="folder_max_count_y">-1</integer> <integer name="folder_max_num_items">-1</integer> diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml index d265c36..a0d7ec8 100644 --- a/res/values-sw600dp/dimens.xml +++ b/res/values-sw600dp/dimens.xml @@ -15,67 +15,39 @@ --> <resources> -<!-- QSB --> - <dimen name="toolbar_button_vertical_padding">12dip</dimen> - <dimen name="toolbar_button_horizontal_padding">12dip</dimen> + <dimen name="app_icon_size">72dp</dimen> + <integer name="app_icon_hotseat_scale_percent">78</integer> + <dimen name="app_icon_drawable_padding">3dp</dimen> + <dimen name="app_icon_padding_top">4dp</dimen> <!-- Workspace --> - <dimen name="qsb_bar_height">56dp</dimen> - <!-- This should be @dimen/qsb_bar_height - @dimen/workspace_top_padding - to fix the extra space given to draw portals --> - <dimen name="workspace_content_large_only_top_margin">36dp</dimen> - <dimen name="workspace_cell_width">96dip</dimen> - <dimen name="workspace_cell_height">96dip</dimen> + <dimen name="workspace_cell_width">96dp</dimen> + <dimen name="workspace_cell_height">96dp</dimen> + +<!-- Hotseat --> + <dimen name="hotseat_width_gap">-1dp</dimen> + <dimen name="hotseat_height_gap">-1dp</dimen> + <dimen name="button_bar_height">94dip</dimen> + <dimen name="button_bar_height_bottom_padding">9dp</dimen> + <dimen name="button_bar_height_top_padding">9dp</dimen> + <dimen name="button_bar_width_left_padding">9dp</dimen> + <dimen name="button_bar_width_right_padding">9dp</dimen> + <dimen name="button_bar_height_plus_padding">94dp</dimen> + +<!-- Folders --> + <!-- The size of the image which sits behind the preview of the folder contents --> + <dimen name="folder_preview_size">75dp</dimen> <dimen name="folder_cell_width">96dp</dimen> <dimen name="folder_cell_height">96dp</dimen> - - <dimen name="app_icon_padding_top">4dp</dimen> + <dimen name="folder_icon_padding_top">0dp</dimen> <!-- AppsCustomize --> - <dimen name="apps_customize_tab_bar_height">60dp</dimen> - <dimen name="apps_customize_tab_bar_margin_top">8dp</dimen> <dimen name="apps_customize_cell_width">96dp</dimen> <dimen name="apps_customize_cell_height">98dp</dimen> + <dimen name="apps_customize_pageLayoutPaddingLeft">10dp</dimen> + <dimen name="apps_customize_pageLayoutPaddingRight">10dp</dimen> + <dimen name="apps_customize_tab_bar_height">60dp</dimen> + <dimen name="apps_customize_tab_bar_margin_top">8dp</dimen> <dimen name="apps_customize_widget_cell_width_gap">36dp</dimen> <dimen name="apps_customize_widget_cell_height_gap">36dp</dimen> - - <!-- The corner radius to draw the external drop icon rounded rect --> - <dimen name="external_drop_icon_rect_radius">10dp</dimen> - - <!-- Size of icons in workspace --> - <dimen name="app_icon_size">72dp</dimen> - - <!-- extra horizontal spacing between mini screen thumbnails ie. in all - apps and in customization mode --> - <dimen name="smallScreenExtraSpacing">0dip</dimen> - - <!-- Vertical spacing between edge of screen and mini cell layouts when they - are minimized to the bottom in all apps --> - <dimen name="allAppsSmallScreenVerticalMarginLandscape">30dip</dimen> - <dimen name="allAppsSmallScreenVerticalMarginPortrait">60dip</dimen> - - <dimen name="all_apps_button_vertical_padding">4dip</dimen> - - <!-- roughly a status bar (for determining how many rows of icons are in home) --> - <dimen name="status_bar_height">48dip</dimen> - - <!-- dimensions for the wallpaper picker wallpaper thumbnail width --> - <dimen name="wallpaper_chooser_grid_width">196dp</dimen> - <dimen name="wallpaper_chooser_grid_height">140dp</dimen> - <dimen name="live_wallpaper_grid_item_padding">8dip</dimen> - - <!-- How much the content view of an alert dialog should be inset (currently used - for the WallpaperChooser in XLarge mode) --> - <dimen name="alert_dialog_content_inset">0dp</dimen> - - <!-- When dragging items on the workspace, the number of dps by which the position of - the drag view should be offset from the position of the original view. --> - <dimen name="dragViewOffsetX">0dp</dimen> - <dimen name="dragViewOffsetY">-12dp</dimen> - -<!-- Folders --> - <!-- The size of the image which sits behind the preview of the folder contents --> - <dimen name="folder_preview_size">78dp</dimen> - <!-- The amount that the preview contents are inset from the preview background --> - <dimen name="folder_preview_padding">4dp</dimen> </resources> diff --git a/res/values-sw600dp/styles.xml b/res/values-sw600dp/styles.xml deleted file mode 100644 index 87110da..0000000 --- a/res/values-sw600dp/styles.xml +++ /dev/null @@ -1,167 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/* -* Copyright (C) 2008 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> -<!-- Clings --> - <style name="ClingButton"> - <item name="android:layout_width">wrap_content</item> - <item name="android:layout_height">wrap_content</item> - <item name="android:paddingTop">10dp</item> - <item name="android:paddingBottom">15dp</item> - <item name="android:paddingLeft">35dp</item> - <item name="android:paddingRight">35dp</item> - <item name="android:text">@string/cling_dismiss</item> - <item name="android:textSize">20sp</item> - <item name="android:textStyle">bold</item> - <item name="android:background">@drawable/cling_button_bg</item> - </style> - <style name="ClingTitleText"> - <item name="android:layout_width">wrap_content</item> - <item name="android:layout_height">wrap_content</item> - <item name="android:layout_marginBottom">5dp</item> - <item name="android:textSize">32sp</item> - <item name="android:textColor">#49C0EC</item> - <item name="android:shadowColor">#000000</item> - <item name="android:shadowDy">2</item> - <item name="android:shadowRadius">2.0</item> - </style> - <style name="ClingText"> - <item name="android:textSize">22sp</item> - <item name="android:textColor">#FFFFFF</item> - <item name="android:shadowColor">#000000</item> - <item name="android:shadowDy">2</item> - <item name="android:shadowRadius">2.0</item> - <item name="android:lineSpacingMultiplier">1.1</item> - </style> - -<!-- Workspace --> - <style name="WorkspaceIcon.Portrait"> - <item name="android:drawablePadding">0dp</item> - <item name="android:paddingLeft">4dp</item> - <item name="android:paddingRight">4dp</item> - <item name="android:paddingTop">@dimen/app_icon_padding_top</item> - <item name="android:paddingBottom">4dp</item> - <item name="android:textSize">13sp</item> - </style> - <style name="WorkspaceIcon.Portrait.Folder"> - <item name="android:drawablePadding">0dp</item> - <item name="android:paddingLeft">4dp</item> - <item name="android:paddingRight">4dp</item> - <item name="android:paddingTop">0dp</item> - <item name="android:paddingBottom">0dp</item> - <item name="android:textSize">13sp</item> - <item name="android:layout_marginTop">-2dp</item> - </style> - <style name="WorkspaceIcon.Landscape"> - <item name="android:drawablePadding">0dp</item> - <item name="android:paddingLeft">4dp</item> - <item name="android:paddingRight">4dp</item> - <item name="android:paddingTop">@dimen/app_icon_padding_top</item> - <item name="android:paddingBottom">4dp</item> - <item name="android:textSize">13sp</item> - </style> - <style name="WorkspaceIcon.Landscape.Folder"> - <item name="android:drawablePadding">0dp</item> - <item name="android:paddingLeft">4dp</item> - <item name="android:paddingRight">4dp</item> - <item name="android:paddingTop">0dp</item> - <item name="android:paddingBottom">0dp</item> - <item name="android:textSize">13sp</item> - <item name="android:layout_marginTop">-2dp</item> - </style> - - <style name="Theme" parent="android:Theme.Holo.Wallpaper.NoTitleBar"> - <item name="android:windowActionModeOverlay">true</item> - </style> - - <style name="Theme.WallpaperPicker"> - <item name="android:screenOrientation">unspecified</item> - </style> - - <style name="WorkspaceIcon.Portrait.AppsCustomize"> - <item name="android:background">@null</item> - <item name="android:paddingTop">0dp</item> - <item name="android:paddingBottom">0dp</item> - <item name="android:paddingLeft">0dp</item> - <item name="android:paddingRight">0dp</item> - <item name="android:drawablePadding">4dp</item> - <item name="android:textSize">13sp</item> - </style> - <style name="WorkspaceIcon.Landscape.AppsCustomize"> - <item name="android:background">@null</item> - <item name="android:paddingTop">0dp</item> - <item name="android:paddingBottom">0dp</item> - <item name="android:drawablePadding">4dp</item> - <item name="android:textSize">13sp</item> - </style> - <style name="TabIndicator.AppsCustomize"> - <item name="android:paddingLeft">32dp</item> - <item name="android:paddingRight">32dp</item> - <item name="android:textSize">14sp</item> - <item name="android:maxWidth">240dp</item> - </style> - - <!-- QSB Search / Drop Target bar --> - <style name="QSBBar"> - <item name="android:orientation">horizontal</item> - <item name="android:layout_width">match_parent</item> - <item name="android:layout_height">@dimen/qsb_bar_height</item> - <item name="android:layout_gravity">top|center_horizontal</item> - </style> - <style name="SearchDropTargetBar"> - <item name="android:orientation">horizontal</item> - <item name="android:layout_width">match_parent</item> - <item name="android:layout_height">match_parent</item> - </style> - <style name="SearchButton"> - <item name="android:layout_gravity">center_vertical</item> - <item name="android:paddingTop">@dimen/toolbar_button_vertical_padding</item> - <item name="android:paddingBottom">@dimen/toolbar_button_vertical_padding</item> - <item name="android:paddingLeft">@dimen/toolbar_button_horizontal_padding</item> - <item name="android:paddingRight">@dimen/toolbar_button_horizontal_padding</item> - </style> - <style name="SearchButton.Voice"> - <item name="android:paddingLeft">18dp</item> - <item name="android:paddingRight">18dp</item> - </style> - <style name="SearchButtonDivider"> - <item name="android:layout_width">wrap_content</item> - <item name="android:layout_height">match_parent</item> - <item name="android:layout_gravity">center_vertical</item> - </style> - <style name="DropTargetButtonContainer"> - <item name="android:layout_width">0dp</item> - <item name="android:layout_height">match_parent</item> - </style> - <style name="DropTargetButton"> - <item name="android:layout_width">wrap_content</item> - <item name="android:layout_height">match_parent</item> - <item name="android:layout_gravity">center</item> - <item name="android:gravity">center_vertical</item> - <item name="android:drawablePadding">7.5dp</item> - <item name="android:paddingLeft">60dp</item> - <item name="android:paddingRight">60dp</item> - <item name="android:textColor">#FFFFFFFF</item> - <item name="android:textSize">16sp</item> - <item name="android:shadowColor">#393939</item> - <item name="android:shadowDx">0.0</item> - <item name="android:shadowDy">0.0</item> - <item name="android:shadowRadius">2.0</item> - </style> -</resources> diff --git a/res/values-sw600dp/wallpapers.xml b/res/values-sw600dp/wallpapers.xml deleted file mode 100644 index fb386f4..0000000 --- a/res/values-sw600dp/wallpapers.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - * Copyright (C) 2009 Google Inc. - * - * 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> - <string-array name="wallpapers" translatable="false"> - <item>wallpaper_architecture</item> - <item>wallpaper_bubblegum</item> - <item>wallpaper_canyon</item> - <item>wallpaper_chroma</item> - <item>wallpaper_escape</item> - <item>wallpaper_fidelity</item> - <item>wallpaper_flora</item> - <item>wallpaper_kepler</item> - <item>wallpaper_leaf</item> - <item>wallpaper_noir</item> - <item>wallpaper_outofthebox</item> - </string-array> -</resources> |