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-sw720dp | |
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-sw720dp')
-rw-r--r-- | res/values-sw720dp/config.xml | 22 | ||||
-rw-r--r-- | res/values-sw720dp/dimens.xml | 49 | ||||
-rw-r--r-- | res/values-sw720dp/styles.xml | 167 | ||||
-rw-r--r-- | res/values-sw720dp/wallpapers.xml | 32 |
4 files changed, 269 insertions, 1 deletions
diff --git a/res/values-sw720dp/config.xml b/res/values-sw720dp/config.xml new file mode 100644 index 0000000..8141283 --- /dev/null +++ b/res/values-sw720dp/config.xml @@ -0,0 +1,22 @@ +<resources> + <bool name="config_largeHeap">true</bool> + <bool name="is_large_screen">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> +</resources> diff --git a/res/values-sw720dp/dimens.xml b/res/values-sw720dp/dimens.xml index 48faf9a..d5f411c 100644 --- a/res/values-sw720dp/dimens.xml +++ b/res/values-sw720dp/dimens.xml @@ -15,9 +15,56 @@ --> <resources> +<!-- QSB --> + <dimen name="toolbar_button_vertical_padding">12dip</dimen> + <dimen name="toolbar_button_horizontal_padding">12dip</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> + <!-- AppsCustomize --> <integer name="apps_customize_maxCellCountX">-1</integer> <integer name="apps_customize_maxCellCountY">-1</integer> <dimen name="app_widget_preview_padding_left">0dp</dimen> <dimen name="app_widget_preview_padding_top">10dp</dimen> -</resources>
\ No newline at end of file + + <!-- 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> + <integer name="app_icon_hotseat_scale_percent">-1</integer> + + <!-- 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> +</resources> diff --git a/res/values-sw720dp/styles.xml b/res/values-sw720dp/styles.xml new file mode 100644 index 0000000..87110da --- /dev/null +++ b/res/values-sw720dp/styles.xml @@ -0,0 +1,167 @@ +<?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-sw720dp/wallpapers.xml b/res/values-sw720dp/wallpapers.xml new file mode 100644 index 0000000..fb386f4 --- /dev/null +++ b/res/values-sw720dp/wallpapers.xml @@ -0,0 +1,32 @@ +<?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> |