summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/layout-land/hotseat.xml17
-rw-r--r--res/layout-land/launcher.xml8
-rw-r--r--res/layout-port/hotseat.xml16
-rw-r--r--res/layout-port/launcher.xml6
-rw-r--r--res/layout/qsb_bar.xml1
-rw-r--r--res/layout/workspace_screen.xml4
-rw-r--r--res/values-h560dp/config.xml21
-rw-r--r--res/values-h560dp/dimens.xml45
-rw-r--r--res/values-h560dp/styles.xml28
-rw-r--r--res/values-land/config.xml18
-rw-r--r--res/values-land/dimens.xml5
-rw-r--r--res/values-land/styles.xml8
-rw-r--r--res/values-large/config.xml2
-rw-r--r--res/values-port/styles.xml2
-rw-r--r--res/values-w560dp/dimens.xml45
-rw-r--r--res/values-w560dp/styles.xml28
-rw-r--r--res/values/config.xml2
-rw-r--r--res/values/dimens.xml11
-rw-r--r--res/values/strings.xml2
-rw-r--r--res/values/styles.xml6
20 files changed, 243 insertions, 32 deletions
diff --git a/res/layout-land/hotseat.xml b/res/layout-land/hotseat.xml
index dca30bf3f..f6d234709 100644
--- a/res/layout-land/hotseat.xml
+++ b/res/layout-land/hotseat.xml
@@ -16,18 +16,21 @@
<com.android.launcher2.Hotseat
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
- android:background="@drawable/hotseat_bg_panel"
launcher:cellCountX="1"
launcher:cellCountY="5">
<com.android.launcher2.CellLayout
android:id="@+id/layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingTop="@dimen/workspace_top_padding"
- android:paddingBottom="@dimen/workspace_bottom_padding"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:paddingTop="@dimen/button_bar_width_left_padding"
+ android:paddingBottom="@dimen/button_bar_width_right_padding"
+ android:paddingLeft="@dimen/button_bar_height_top_padding"
+ android:paddingRight="@dimen/button_bar_height_bottom_padding"
+
launcher:cellWidth="@dimen/hotseat_cell_width"
launcher:cellHeight="@dimen/hotseat_cell_height"
- launcher:widthGap="-1dp"
- launcher:heightGap="-1dp"
+ launcher:widthGap="@dimen/hotseat_width_gap"
+ launcher:heightGap="@dimen/hotseat_height_gap"
launcher:maxGap="@dimen/workspace_max_gap" />
</com.android.launcher2.Hotseat>
diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml
index 5af49a2d7..2b25bbb70 100644
--- a/res/layout-land/launcher.xml
+++ b/res/layout-land/launcher.xml
@@ -66,11 +66,9 @@
<include android:id="@+id/cell5" layout="@layout/workspace_screen" />
</com.android.launcher2.Workspace>
- <include layout="@layout/qsb_bar"
+ <include
android:id="@+id/qsb_bar"
- android:layout_width="@dimen/qsb_bar_height"
- android:layout_height="match_parent"
- android:layout_gravity="left" />
+ layout="@layout/qsb_bar" />
<include layout="@layout/apps_customize_pane"
android:id="@+id/apps_customize_pane"
@@ -80,7 +78,7 @@
<include layout="@layout/hotseat"
android:id="@+id/hotseat"
- android:layout_width="@dimen/button_bar_height"
+ android:layout_width="@dimen/button_bar_height_plus_padding"
android:layout_height="match_parent"
android:layout_gravity="right" />
diff --git a/res/layout-port/hotseat.xml b/res/layout-port/hotseat.xml
index 19da94480..ee59a6ab8 100644
--- a/res/layout-port/hotseat.xml
+++ b/res/layout-port/hotseat.xml
@@ -16,19 +16,21 @@
<com.android.launcher2.Hotseat
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
- android:background="@drawable/hotseat_bg_panel"
launcher:cellCountX="5"
launcher:cellCountY="1">
<com.android.launcher2.CellLayout
android:id="@+id/layout"
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:paddingTop="@dimen/button_bar_height_padding"
- android:paddingLeft="@dimen/workspace_left_padding"
- android:paddingRight="@dimen/workspace_right_padding"
+ android:layout_gravity="center"
+ android:paddingTop="@dimen/button_bar_height_top_padding"
+ android:paddingBottom="@dimen/button_bar_height_bottom_padding"
+ android:paddingLeft="@dimen/button_bar_width_left_padding"
+ android:paddingRight="@dimen/button_bar_width_right_padding"
+
launcher:cellWidth="@dimen/hotseat_cell_width"
launcher:cellHeight="@dimen/hotseat_cell_height"
- launcher:widthGap="-1dp"
- launcher:heightGap="-1dp"
+ launcher:widthGap="@dimen/hotseat_width_gap"
+ launcher:heightGap="@dimen/hotseat_height_gap"
launcher:maxGap="@dimen/workspace_max_gap" />
</com.android.launcher2.Hotseat>
diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml
index 1bd8d7c21..b45800ef5 100644
--- a/res/layout-port/launcher.xml
+++ b/res/layout-port/launcher.xml
@@ -67,11 +67,9 @@
<include android:id="@+id/cell5" layout="@layout/workspace_screen" />
</com.android.launcher2.Workspace>
- <include layout="@layout/qsb_bar"
+ <include
android:id="@+id/qsb_bar"
- android:layout_width="match_parent"
- android:layout_height="@dimen/qsb_bar_height"
- android:layout_gravity="top" />
+ layout="@layout/qsb_bar" />
<include layout="@layout/apps_customize_pane"
android:id="@+id/apps_customize_pane"
diff --git a/res/layout/qsb_bar.xml b/res/layout/qsb_bar.xml
index cad81f526..c2179ce38 100644
--- a/res/layout/qsb_bar.xml
+++ b/res/layout/qsb_bar.xml
@@ -16,6 +16,7 @@
<com.android.launcher2.SearchDropTargetBar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ style="@style/QSBBar"
android:focusable="false">
<!-- Search buttons container -->
diff --git a/res/layout/workspace_screen.xml b/res/layout/workspace_screen.xml
index c7d30ced7..23e1def68 100644
--- a/res/layout/workspace_screen.xml
+++ b/res/layout/workspace_screen.xml
@@ -27,6 +27,6 @@
launcher:cellWidth="@dimen/workspace_cell_width"
launcher:cellHeight="@dimen/workspace_cell_height"
- launcher:widthGap="-1dp"
- launcher:heightGap="-1dp"
+ launcher:widthGap="@dimen/workspace_width_gap"
+ launcher:heightGap="@dimen/workspace_height_gap"
launcher:maxGap="@dimen/workspace_max_gap" />
diff --git a/res/values-h560dp/config.xml b/res/values-h560dp/config.xml
new file mode 100644
index 000000000..d1f308576
--- /dev/null
+++ b/res/values-h560dp/config.xml
@@ -0,0 +1,21 @@
+<?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>
+<!-- Workspace -->
+ <!-- Whether or not to fade the side pages -->
+ <bool name="config_workspaceFadeAdjacentScreens">true</bool>
+</resources>
diff --git a/res/values-h560dp/dimens.xml b/res/values-h560dp/dimens.xml
new file mode 100644
index 000000000..4894fc43f
--- /dev/null
+++ b/res/values-h560dp/dimens.xml
@@ -0,0 +1,45 @@
+<?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>
+<!-- Workspace -->
+ <dimen name="workspace_width_gap">0dp</dimen>
+ <dimen name="workspace_height_gap">0dp</dimen>
+ <dimen name="workspace_top_padding">-1dp</dimen>
+ <dimen name="workspace_bottom_padding">-1dp</dimen>
+ <dimen name="workspace_left_padding">-1dp</dimen>
+ <dimen name="workspace_right_padding">-1dp</dimen>
+ <dimen name="workspace_divider_padding_left">20dp</dimen>
+ <dimen name="workspace_divider_padding_right">20dp</dimen>
+
+ <dimen name="hotseat_width_gap">0dp</dimen>
+ <dimen name="hotseat_height_gap">0dp</dimen>
+ <dimen name="hotseat_top_padding">-1dp</dimen>
+ <dimen name="hotseat_bottom_padding">-1dp</dimen>
+ <dimen name="hotseat_left_padding">-1dp</dimen>
+ <dimen name="hotseat_right_padding">-1dp</dimen>
+
+ <dimen name="qsb_bar_height">48dp</dimen>
+ <!-- height of the bottom row of controls -->
+ <dimen name="button_bar_height">80dip</dimen>
+ <!-- Because portal animations go beyond the bounds of an icon, we need
+ to make the dock layout slightly larger than the button_bar_height -->
+ <dimen name="button_bar_height_top_padding">8dp</dimen>
+ <dimen name="button_bar_height_bottom_padding">8dp</dimen>
+ <dimen name="button_bar_width_left_padding">8dp</dimen>
+ <dimen name="button_bar_width_right_padding">8dp</dimen>
+ <dimen name="button_bar_height_plus_padding">80dp</dimen>
+</resources>
diff --git a/res/values-h560dp/styles.xml b/res/values-h560dp/styles.xml
new file mode 100644
index 000000000..84d43df8e
--- /dev/null
+++ b/res/values-h560dp/styles.xml
@@ -0,0 +1,28 @@
+<?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>
+<!-- Workspace -->
+ <style name="QSBBar">
+ <item name="android:orientation">horizontal</item>
+ <item name="android:layout_width">320dp</item>
+ <item name="android:layout_height">@dimen/qsb_bar_height</item>
+ <item name="android:layout_gravity">top|center_horizontal</item>
+ </style>
+</resources>
diff --git a/res/values-land/config.xml b/res/values-land/config.xml
index adbc015b5..2fee8cfb8 100644
--- a/res/values-land/config.xml
+++ b/res/values-land/config.xml
@@ -1,5 +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>
<!-- Workspace -->
<!-- Whether or not the drop targets drop down as opposed to fade in -->
<bool name="config_useDropTargetDownTransition">false</bool>
+ <!-- Whether or not to fade the side pages -->
+ <bool name="config_workspaceFadeAdjacentScreens">true</bool>
</resources>
diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml
index 55a25ec68..da42b8566 100644
--- a/res/values-land/dimens.xml
+++ b/res/values-land/dimens.xml
@@ -41,7 +41,10 @@
<dimen name="button_bar_height">68dip</dimen>
<!-- Because portal animations go beyond the bounds of an icon, we need
to make the dock layout slightly larger than the button_bar_height -->
- <dimen name="button_bar_height_padding">8dp</dimen>
+ <dimen name="button_bar_height_top_padding">8dp</dimen>
+ <dimen name="button_bar_height_bottom_padding">0dp</dimen>
+ <dimen name="button_bar_width_left_padding">0dp</dimen>
+ <dimen name="button_bar_width_right_padding">0dp</dimen>
<dimen name="button_bar_height_plus_padding">76dp</dimen>
<!-- AppsCustomize -->
diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml
index 437a51110..104da63d6 100644
--- a/res/values-land/styles.xml
+++ b/res/values-land/styles.xml
@@ -21,9 +21,15 @@
<!-- Workspace -->
<style name="WorkspaceScreen">
<item name="android:layout_width">wrap_content</item>
- <item name="android:layout_height">match_parent</item>
+ <item name="android:layout_height">wrap_content</item>
</style>
<!-- Search Bar -->
+ <style name="QSBBar">
+ <item name="android:orientation">vertical</item>
+ <item name="android:layout_width">@dimen/qsb_bar_height</item>
+ <item name="android:layout_height">match_parent</item>
+ <item name="android:layout_gravity">left</item>
+ </style>
<style name="SearchDropTargetBar">
<item name="android:orientation">vertical</item>
<item name="android:layout_width">match_parent</item>
diff --git a/res/values-large/config.xml b/res/values-large/config.xml
index 6274364e1..2a81e12a1 100644
--- a/res/values-large/config.xml
+++ b/res/values-large/config.xml
@@ -8,6 +8,8 @@
<!-- 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.
diff --git a/res/values-port/styles.xml b/res/values-port/styles.xml
index 66a4ca728..9c5cf7fee 100644
--- a/res/values-port/styles.xml
+++ b/res/values-port/styles.xml
@@ -20,7 +20,7 @@
<resources>
<!-- Workspace -->
<style name="WorkspaceScreen">
- <item name="android:layout_width">match_parent</item>
+ <item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
</resources>
diff --git a/res/values-w560dp/dimens.xml b/res/values-w560dp/dimens.xml
new file mode 100644
index 000000000..b08159b50
--- /dev/null
+++ b/res/values-w560dp/dimens.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 201 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>
+<!-- Workspace -->
+ <dimen name="workspace_width_gap">0dp</dimen>
+ <dimen name="workspace_height_gap">0dp</dimen>
+ <dimen name="workspace_top_padding">-1dp</dimen>
+ <dimen name="workspace_bottom_padding">-1dp</dimen>
+ <dimen name="workspace_left_padding">-1dp</dimen>
+ <dimen name="workspace_right_padding">-1dp</dimen>
+ <dimen name="workspace_divider_padding_top">20dp</dimen>
+ <dimen name="workspace_divider_padding_bottom">20dp</dimen>
+
+ <dimen name="hotseat_width_gap">0dp</dimen>
+ <dimen name="hotseat_height_gap">0dp</dimen>
+ <dimen name="hotseat_top_padding">-1dp</dimen>
+ <dimen name="hotseat_bottom_padding">-1dp</dimen>
+ <dimen name="hotseat_left_padding">-1dp</dimen>
+ <dimen name="hotseat_right_padding">-1dp</dimen>
+
+ <dimen name="qsb_bar_height">48dp</dimen>
+ <!-- height of the bottom row of controls -->
+ <dimen name="button_bar_height">80dip</dimen>
+ <!-- Because portal animations go beyond the bounds of an icon, we need
+ to make the dock layout slightly larger than the button_bar_height -->
+ <dimen name="button_bar_height_top_padding">8dp</dimen>
+ <dimen name="button_bar_height_bottom_padding">8dp</dimen>
+ <dimen name="button_bar_width_left_padding">8dp</dimen>
+ <dimen name="button_bar_width_right_padding">8dp</dimen>
+ <dimen name="button_bar_height_plus_padding">80dp</dimen>
+</resources>
diff --git a/res/values-w560dp/styles.xml b/res/values-w560dp/styles.xml
new file mode 100644
index 000000000..edd63a4ce
--- /dev/null
+++ b/res/values-w560dp/styles.xml
@@ -0,0 +1,28 @@
+<?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>
+<!-- Workspace -->
+ <style name="QSBBar">
+ <item name="android:orientation">vertical</item>
+ <item name="android:layout_width">@dimen/qsb_bar_height</item>
+ <item name="android:layout_height">320dp</item>
+ <item name="android:layout_gravity">left</item>
+ </style>
+</resources>
diff --git a/res/values/config.xml b/res/values/config.xml
index e88a83eac..76c9be829 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -44,6 +44,8 @@
<!-- 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">false</bool>
<!-- The transition duration for the background of the drop targets -->
<integer name="config_dropTargetBgTransitionDuration">100</integer>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 0d44db864..0111a9c8e 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -22,8 +22,6 @@
<dimen name="qsb_bar_height">40dp</dimen>
<dimen name="workspace_cell_width">80dp</dimen>
<dimen name="workspace_cell_height">100dp</dimen>
- <dimen name="hotseat_cell_width">64dp</dimen>
- <dimen name="hotseat_cell_height">64dp</dimen>
<dimen name="workspace_width_gap">-1dp</dimen>
<dimen name="workspace_height_gap">-1dp</dimen>
<dimen name="workspace_max_gap">16dp</dimen>
@@ -33,6 +31,10 @@
<dimen name="workspace_divider_padding_right">12dp</dimen>
<dimen name="workspace_divider_padding_top">0dp</dimen>
<dimen name="workspace_divider_padding_bottom">0dp</dimen>
+ <dimen name="hotseat_cell_width">64dp</dimen>
+ <dimen name="hotseat_cell_height">64dp</dimen>
+ <dimen name="hotseat_width_gap">-1dp</dimen>
+ <dimen name="hotseat_height_gap">-1dp</dimen>
<!-- QSB -->
<dimen name="toolbar_button_vertical_padding">0dip</dimen>
@@ -53,7 +55,10 @@
<dimen name="button_bar_height">64dip</dimen>
<!-- Because portal animations go beyond the bounds of an icon, we need
to make the dock layout slightly larger than the button_bar_height -->
- <dimen name="button_bar_height_padding">8dp</dimen>
+ <dimen name="button_bar_height_top_padding">8dp</dimen>
+ <dimen name="button_bar_height_bottom_padding">0dp</dimen>
+ <dimen name="button_bar_width_left_padding">0dp</dimen>
+ <dimen name="button_bar_width_right_padding">0dp</dimen>
<dimen name="button_bar_height_plus_padding">72dp</dimen>
<!-- Drag padding to add to the drop targets -->
diff --git a/res/values/strings.xml b/res/values/strings.xml
index a238eb489..65ed04b96 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -149,7 +149,7 @@ s -->
<!-- Noun, menu item used to bring down the notifications shade -->
<string name="menu_notifications">Notifications</string>
<!-- Noun, menu item used to show the system settings -->
- <string name="menu_settings">System Settings</string>
+ <string name="menu_settings">System settings</string>
<!-- Noun, menu item used to show help. [CHAR_LIMIT=none] -->
<string name="menu_help">Help</string>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 6e1ae6aaf..b510566e9 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -108,6 +108,12 @@
<item name="android:drawablePadding">6dp</item>
</style>
+ <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>