diff options
author | Winson Chung <winsonc@google.com> | 2014-05-14 14:15:20 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2014-05-16 12:33:38 -0700 |
commit | be87647e2ade2f442159e60da81d1c5a57eba8a9 (patch) | |
tree | 787e750408964babed5921cfebc4f5c5c0231624 /res/xml | |
parent | 244637b59c328b918c6b2e1aef33ba448728207d (diff) | |
download | android_packages_apps_Trebuchet-be87647e2ade2f442159e60da81d1c5a57eba8a9.tar.gz android_packages_apps_Trebuchet-be87647e2ade2f442159e60da81d1c5a57eba8a9.tar.bz2 android_packages_apps_Trebuchet-be87647e2ade2f442159e60da81d1c5a57eba8a9.zip |
Adding support for dynamically resolved default layouts.
Change-Id: Id05c60b93423ce37dd06a126ecf33c74a0ba1d62
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/default_workspace_4x4.xml (renamed from res/xml/default_workspace.xml) | 0 | ||||
-rw-r--r-- | res/xml/default_workspace_4x4_no_all_apps.xml (renamed from res/xml/default_workspace_no_all_apps.xml) | 0 | ||||
-rw-r--r-- | res/xml/default_workspace_5x5.xml | 116 | ||||
-rw-r--r-- | res/xml/default_workspace_5x5_no_all_apps.xml | 56 | ||||
-rw-r--r-- | res/xml/default_workspace_5x6.xml | 115 | ||||
-rw-r--r-- | res/xml/default_workspace_5x6_no_all_apps.xml | 56 |
6 files changed, 343 insertions, 0 deletions
diff --git a/res/xml/default_workspace.xml b/res/xml/default_workspace_4x4.xml index 9bec86aa8..9bec86aa8 100644 --- a/res/xml/default_workspace.xml +++ b/res/xml/default_workspace_4x4.xml diff --git a/res/xml/default_workspace_no_all_apps.xml b/res/xml/default_workspace_4x4_no_all_apps.xml index 7e1301cef..7e1301cef 100644 --- a/res/xml/default_workspace_no_all_apps.xml +++ b/res/xml/default_workspace_4x4_no_all_apps.xml diff --git a/res/xml/default_workspace_5x5.xml b/res/xml/default_workspace_5x5.xml new file mode 100644 index 000000000..9bec86aa8 --- /dev/null +++ b/res/xml/default_workspace_5x5.xml @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"> + <!-- Far-left screen [0] --> + + <!-- Left screen [1] --> + <appwidget + launcher:packageName="com.android.settings" + launcher:className="com.android.settings.widget.SettingsAppWidgetProvider" + launcher:screen="1" + launcher:x="0" + launcher:y="3" + launcher:spanX="4" + launcher:spanY="1" /> + + <!-- Middle screen [2] --> + <appwidget + launcher:packageName="com.android.deskclock" + launcher:className="com.android.alarmclock.AnalogAppWidgetProvider" + launcher:screen="2" + launcher:x="1" + launcher:y="0" + launcher:spanX="2" + launcher:spanY="2" /> + <favorite + launcher:packageName="com.android.camera" + launcher:className="com.android.camera.Camera" + launcher:screen="2" + launcher:x="0" + launcher:y="3" /> + + <!-- Right screen [3] --> + <favorite + launcher:packageName="com.android.gallery3d" + launcher:className="com.android.gallery3d.app.Gallery" + launcher:screen="3" + launcher:x="1" + launcher:y="3" /> + <favorite + launcher:packageName="com.android.settings" + launcher:className="com.android.settings.Settings" + launcher:screen="3" + launcher:x="2" + launcher:y="3" /> + + <!-- Far-right screen [4] --> + + <!-- Hotseat (We use the screen as the position of the item in the hotseat) --> + <!-- Dialer, Contacts, [All Apps], Messaging, Browser --> + <resolve + launcher:container="-101" + launcher:screen="0" + launcher:x="0" + launcher:y="0" > + <favorite launcher:uri="#Intent;action=android.intent.action.DIAL;end" /> + <favorite launcher:uri="tel:123" /> + <favorite launcher:uri="#Intent;action=android.intent.action.CALL_BUTTON;end" /> + + <favorite + launcher:packageName="com.android.dialer" + launcher:className="com.android.dialer.DialtactsActivity" /> + </resolve> + + <favorite + launcher:packageName="com.android.contacts" + launcher:className="com.android.contacts.activities.PeopleActivity" + launcher:container="-101" + launcher:screen="1" + launcher:x="1" + launcher:y="0" /> + + <resolve + launcher:container="-101" + launcher:screen="3" + launcher:x="3" + launcher:y="0" > + <favorite + launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MESSAGING;end" /> + <favorite launcher:uri="sms:" /> + <favorite launcher:uri="smsto:" /> + <favorite launcher:uri="mms:" /> + <favorite launcher:uri="mmsto:" /> + + <favorite + launcher:packageName="com.android.mms" + launcher:className="com.android.mms.ui.ConversationList" /> + </resolve> + <resolve + launcher:container="-101" + launcher:screen="4" + launcher:x="4" + launcher:y="0" > + <favorite + launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_BROWSER;end" /> + <favorite launcher:uri="http://www.example.com/" /> + + <favorite + launcher:packageName="com.android.browser" + launcher:className="com.android.browser.BrowserActivity" /> + </resolve> + +</favorites> diff --git a/res/xml/default_workspace_5x5_no_all_apps.xml b/res/xml/default_workspace_5x5_no_all_apps.xml new file mode 100644 index 000000000..f54a20425 --- /dev/null +++ b/res/xml/default_workspace_5x5_no_all_apps.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> + +<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"> + <!-- Hotseat (We use the screen as the position of the item in the hotseat) --> + <!-- Dialer Hangouts Maps Chrome Camera --> + <favorite + launcher:packageName="com.google.android.dialer" + launcher:className="com.google.android.dialer.extensions.GoogleDialtactsActivity" + launcher:container="-101" + launcher:screen="1" + launcher:x="1" + launcher:y="0" /> + <favorite + launcher:packageName="com.google.android.talk" + launcher:className="com.google.android.talk.SigningInActivity" + launcher:container="-101" + launcher:screen="2" + launcher:x="2" + launcher:y="0" /> + <favorite + launcher:packageName="com.google.android.apps.maps" + launcher:className="com.google.android.maps.MapsActivity" + launcher:container="-101" + launcher:screen="3" + launcher:x="3" + launcher:y="0"/> + <favorite + launcher:packageName="com.android.chrome" + launcher:className="com.google.android.apps.chrome.Main" + launcher:container="-101" + launcher:screen="4" + launcher:x="4" + launcher:y="0" /> + <favorite + launcher:packageName="com.google.android.GoogleCamera" + launcher:className="com.android.camera.CameraLauncher" + launcher:container="-101" + launcher:screen="5" + launcher:x="5" + launcher:y="0" /> +</favorites> + diff --git a/res/xml/default_workspace_5x6.xml b/res/xml/default_workspace_5x6.xml new file mode 100644 index 000000000..d42a93a6a --- /dev/null +++ b/res/xml/default_workspace_5x6.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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. +--> + +<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"> + <!-- Far-left screen [0] --> + + <!-- Left screen [1] --> + <appwidget + launcher:packageName="com.android.settings" + launcher:className="com.android.settings.widget.SettingsAppWidgetProvider" + launcher:screen="1" + launcher:x="0" + launcher:y="3" + launcher:spanX="4" + launcher:spanY="1" /> + + <!-- Middle screen [2] --> + <appwidget + launcher:packageName="com.android.deskclock" + launcher:className="com.android.alarmclock.AnalogAppWidgetProvider" + launcher:screen="2" + launcher:x="1" + launcher:y="0" + launcher:spanX="2" + launcher:spanY="2" /> + <favorite + launcher:packageName="com.android.camera" + launcher:className="com.android.camera.Camera" + launcher:screen="2" + launcher:x="0" + launcher:y="3" /> + + <!-- Right screen [3] --> + <favorite + launcher:packageName="com.android.gallery3d" + launcher:className="com.android.gallery3d.app.Gallery" + launcher:screen="3" + launcher:x="1" + launcher:y="3" /> + <favorite + launcher:packageName="com.android.settings" + launcher:className="com.android.settings.Settings" + launcher:screen="3" + launcher:x="2" + launcher:y="3" /> + + <!-- Far-right screen [4] --> + + <!-- Hotseat (We use the screen as the position of the item in the hotseat) --> + <!-- Dialer, Contacts, [All Apps], Messaging, Browser --> + <resolve + launcher:container="-101" + launcher:screen="1" + launcher:x="1" + launcher:y="0" > + <favorite launcher:uri="#Intent;action=android.intent.action.DIAL;end" /> + <favorite launcher:uri="tel:123" /> + <favorite launcher:uri="#Intent;action=android.intent.action.CALL_BUTTON;end" /> + + <favorite + launcher:packageName="com.android.dialer" + launcher:className="com.android.dialer.DialtactsActivity" /> + </resolve> + + <favorite + launcher:packageName="com.android.contacts" + launcher:className="com.android.contacts.activities.PeopleActivity" + launcher:container="-101" + launcher:screen="2" + launcher:x="2" + launcher:y="0" /> + + <resolve + launcher:container="-101" + launcher:screen="4" + launcher:x="4" + launcher:y="0" > + <favorite + launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MESSAGING;end" /> + <favorite launcher:uri="sms:" /> + <favorite launcher:uri="smsto:" /> + <favorite launcher:uri="mms:" /> + <favorite launcher:uri="mmsto:" /> + + <favorite + launcher:packageName="com.android.mms" + launcher:className="com.android.mms.ui.ConversationList" /> + </resolve> + <resolve + launcher:container="-101" + launcher:screen="5" + launcher:x="5" + launcher:y="0" > + <favorite + launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_BROWSER;end" /> + <favorite launcher:uri="http://www.example.com/" /> + + <favorite + launcher:packageName="com.android.browser" + launcher:className="com.android.browser.BrowserActivity" /> + </resolve> +</favorites> diff --git a/res/xml/default_workspace_5x6_no_all_apps.xml b/res/xml/default_workspace_5x6_no_all_apps.xml new file mode 100644 index 000000000..f54a20425 --- /dev/null +++ b/res/xml/default_workspace_5x6_no_all_apps.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> + +<favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"> + <!-- Hotseat (We use the screen as the position of the item in the hotseat) --> + <!-- Dialer Hangouts Maps Chrome Camera --> + <favorite + launcher:packageName="com.google.android.dialer" + launcher:className="com.google.android.dialer.extensions.GoogleDialtactsActivity" + launcher:container="-101" + launcher:screen="1" + launcher:x="1" + launcher:y="0" /> + <favorite + launcher:packageName="com.google.android.talk" + launcher:className="com.google.android.talk.SigningInActivity" + launcher:container="-101" + launcher:screen="2" + launcher:x="2" + launcher:y="0" /> + <favorite + launcher:packageName="com.google.android.apps.maps" + launcher:className="com.google.android.maps.MapsActivity" + launcher:container="-101" + launcher:screen="3" + launcher:x="3" + launcher:y="0"/> + <favorite + launcher:packageName="com.android.chrome" + launcher:className="com.google.android.apps.chrome.Main" + launcher:container="-101" + launcher:screen="4" + launcher:x="4" + launcher:y="0" /> + <favorite + launcher:packageName="com.google.android.GoogleCamera" + launcher:className="com.android.camera.CameraLauncher" + launcher:container="-101" + launcher:screen="5" + launcher:x="5" + launcher:y="0" /> +</favorites> + |