summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2010-09-23 18:40:29 -0700
committerWinson Chung <winsonc@google.com>2010-09-24 11:09:38 -0700
commit5ffd8eafeb2ef0554ecb38f6e81cf48b674856d9 (patch)
treee9f75a95a342d5d5e86364a6a7954f96273a7a60 /res
parentdea9e93e4a7b78ae48f27ac0d5d117f6b393bba0 (diff)
downloadandroid_packages_apps_Trebuchet-5ffd8eafeb2ef0554ecb38f6e81cf48b674856d9.tar.gz
android_packages_apps_Trebuchet-5ffd8eafeb2ef0554ecb38f6e81cf48b674856d9.tar.bz2
android_packages_apps_Trebuchet-5ffd8eafeb2ef0554ecb38f6e81cf48b674856d9.zip
Initial changes to add Applications tab in the customization drawer for usability testing.
- Also adding padding attributes for the dynamic layouts created for each page. Change-Id: I76a7b6b8f4d83329c506fd6055f910575d0c200f
Diffstat (limited to 'res')
-rw-r--r--res/layout-xlarge-land/all_apps_tabbed.xml49
-rw-r--r--res/layout-xlarge-land/customization_drawer.xml8
-rw-r--r--res/layout-xlarge-port/all_apps_tabbed.xml (renamed from res/layout-xlarge/all_apps_tabbed.xml)6
-rw-r--r--res/layout-xlarge-port/customization_drawer.xml8
-rw-r--r--res/values/attrs.xml5
-rw-r--r--res/values/strings.xml4
6 files changed, 76 insertions, 4 deletions
diff --git a/res/layout-xlarge-land/all_apps_tabbed.xml b/res/layout-xlarge-land/all_apps_tabbed.xml
new file mode 100644
index 000000000..4f573f8a8
--- /dev/null
+++ b/res/layout-xlarge-land/all_apps_tabbed.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 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.
+-->
+<com.android.launcher2.AllAppsTabbed
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
+ android:background="#30000000"
+ android:paddingTop="?android:attr/actionBarSize">
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ <TabWidget
+ android:id="@android:id/tabs"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:tabStripEnabled="false"
+ android:paddingBottom="10dp" />
+ <FrameLayout
+ android:id="@android:id/tabcontent"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ <com.android.launcher2.AllAppsPagedView
+ android:id="@+id/all_apps_paged_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ launcher:cellCountX="7"
+ launcher:cellCountY="4"
+ launcher:pageLayoutPaddingTop="10dp"
+ launcher:pageLayoutPaddingBottom="15dp"
+ launcher:pageLayoutPaddingLeft="20dp"
+ launcher:pageLayoutPaddingRight="20dp">
+ </com.android.launcher2.AllAppsPagedView>
+ </FrameLayout>
+ </LinearLayout>
+</com.android.launcher2.AllAppsTabbed>
diff --git a/res/layout-xlarge-land/customization_drawer.xml b/res/layout-xlarge-land/customization_drawer.xml
index 4fcf761d1..7ad913236 100644
--- a/res/layout-xlarge-land/customization_drawer.xml
+++ b/res/layout-xlarge-land/customization_drawer.xml
@@ -19,4 +19,10 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
- launcher:widgetCellCountX="16" /> \ No newline at end of file
+ launcher:widgetCellCountX="16"
+ launcher:cellCountX="7"
+ launcher:cellCountY="4"
+ launcher:pageLayoutPaddingTop="10dp"
+ launcher:pageLayoutPaddingBottom="15dp"
+ launcher:pageLayoutPaddingLeft="20dp"
+ launcher:pageLayoutPaddingRight="20dp" /> \ No newline at end of file
diff --git a/res/layout-xlarge/all_apps_tabbed.xml b/res/layout-xlarge-port/all_apps_tabbed.xml
index 5aca95404..2ff044792 100644
--- a/res/layout-xlarge/all_apps_tabbed.xml
+++ b/res/layout-xlarge-port/all_apps_tabbed.xml
@@ -38,7 +38,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
launcher:cellCountX="7"
- launcher:cellCountY="4">
+ launcher:cellCountY="4"
+ launcher:pageLayoutPaddingTop="10dp"
+ launcher:pageLayoutPaddingBottom="10dp"
+ launcher:pageLayoutPaddingLeft="0dp"
+ launcher:pageLayoutPaddingRight="0dp">
</com.android.launcher2.AllAppsPagedView>
</FrameLayout>
</LinearLayout>
diff --git a/res/layout-xlarge-port/customization_drawer.xml b/res/layout-xlarge-port/customization_drawer.xml
index 6e4bc4c23..db264b228 100644
--- a/res/layout-xlarge-port/customization_drawer.xml
+++ b/res/layout-xlarge-port/customization_drawer.xml
@@ -19,4 +19,10 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
- launcher:widgetCellCountX="12" /> \ No newline at end of file
+ launcher:widgetCellCountX="12"
+ launcher:cellCountX="7"
+ launcher:cellCountY="4"
+ launcher:pageLayoutPaddingTop="10dp"
+ launcher:pageLayoutPaddingBottom="15dp"
+ launcher:pageLayoutPaddingLeft="0dp"
+ launcher:pageLayoutPaddingRight="0dp" /> \ No newline at end of file
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 3ef26fb05..bb1b85f3b 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -75,6 +75,11 @@
<attr name="cellCountX" />
<!-- The number of vertical cells in a page -->
<attr name="cellCountY" />
+ <!-- The padding of the pages that are dynamically created per page -->
+ <attr name="pageLayoutPaddingTop" format="dimension" />
+ <attr name="pageLayoutPaddingBottom" format="dimension" />
+ <attr name="pageLayoutPaddingLeft" format="dimension" />
+ <attr name="pageLayoutPaddingRight" format="dimension" />
</declare-styleable>
<!-- CustomizePagedView specific attributes. These attributes are used to customize
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 00febfee5..4d88a3355 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -50,9 +50,11 @@
<string name="folders_tab_label">Folders</string>
<!-- Title of tab containing all possible shortcuts (eg Contacts, Bookmarks) that can be
added to the home screen -->
- <string name="shortcuts_tab_label">Shortcuts</string>
+ <string name="shortcuts_tab_label">More</string>
<!-- Title of tab for configuring wallpapers -->
<string name="wallpapers_tab_label">Wallpapers</string>
+ <!-- Title of tab for configuring applications -->
+ <string name="applications_tab_label">App Shortcuts</string>
<!-- Placeholder text, will be removed -->
<string name="wallpapers_temp_tab_text">This will be the wallpapers tab</string>
<!-- Labels for the tabs in All Apps -->