diff options
author | Winson Chung <winsonc@google.com> | 2011-08-09 14:14:23 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-08-22 21:26:06 -0700 |
commit | 82f5553a137f0a25f7333a6fc9507c847b7a42ed (patch) | |
tree | 1b1f7967459115979fe4fb1b4f63f598e2823f5b /res/layout-land | |
parent | 30a22f32b07f7a864112d92ac959db0e84e0c374 (diff) | |
download | packages_apps_trebuchet-82f5553a137f0a25f7333a6fc9507c847b7a42ed.zip packages_apps_trebuchet-82f5553a137f0a25f7333a6fc9507c847b7a42ed.tar.gz packages_apps_trebuchet-82f5553a137f0a25f7333a6fc9507c847b7a42ed.tar.bz2 |
Cling ALL the things! (Workspace and AllApps)
Change-Id: Iee6b38dbb4f0b2fb85f854d70fd86db1e7b1d8f7
Diffstat (limited to 'res/layout-land')
-rw-r--r-- | res/layout-land/all_apps_cling.xml | 44 | ||||
-rw-r--r-- | res/layout-land/launcher.xml | 6 | ||||
-rw-r--r-- | res/layout-land/workspace_cling.xml | 51 |
3 files changed, 101 insertions, 0 deletions
diff --git a/res/layout-land/all_apps_cling.xml b/res/layout-land/all_apps_cling.xml new file mode 100644 index 0000000..95d88b0 --- /dev/null +++ b/res/layout-land/all_apps_cling.xml @@ -0,0 +1,44 @@ +<?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. +--> +<com.android.launcher2.Cling + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" + launcher:drawIdentifier="all_apps_landscape" + android:background="#CA000000"> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginLeft="20dp" + android:layout_marginTop="50dp"> + <TextView + style="@style/ClingTitleText" + android:id="@+id/all_apps_cling_title" + android:layout_marginTop="0dp" + android:text="@string/all_apps_cling_title" /> + <TextView + style="@style/ClingText" + android:id="@+id/all_apps_cling_add_item" + android:layout_width="280dp" + android:layout_height="wrap_content" + android:layout_marginTop="45dp" + android:text="@string/all_apps_cling_add_item" /> + <Button + style="@style/ClingButton" + android:id="@+id/cling_dismiss" + android:layout_marginTop="100dp" + android:onClick="dismissAllAppsCling" /> + </FrameLayout> +</com.android.launcher2.Cling> diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 9d394d0..5af49a2 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -83,4 +83,10 @@ android:layout_width="@dimen/button_bar_height" android:layout_height="match_parent" android:layout_gravity="right" /> + + <include layout="@layout/workspace_cling" + android:id="@+id/workspace_cling" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" /> </com.android.launcher2.DragLayer> diff --git a/res/layout-land/workspace_cling.xml b/res/layout-land/workspace_cling.xml new file mode 100644 index 0000000..fa85507 --- /dev/null +++ b/res/layout-land/workspace_cling.xml @@ -0,0 +1,51 @@ +<?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. +--> +<com.android.launcher2.Cling + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" + launcher:drawIdentifier="workspace_landscape" + android:background="#AA000000"> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginLeft="20dp" + android:layout_marginTop="20dp"> + <TextView + style="@style/ClingTitleText" + android:id="@+id/workspace_cling_title" + android:layout_marginTop="0dp" + android:text="@string/workspace_cling_title" /> + <TextView + style="@style/ClingText" + android:id="@+id/workspace_cling_move_item" + android:layout_width="285dp" + android:layout_height="wrap_content" + android:layout_marginTop="50dp" + android:text="@string/workspace_cling_move_item" /> + <TextView + style="@style/ClingText" + android:id="@+id/workspace_cling_open_all_apps" + android:layout_width="200dp" + android:layout_height="wrap_content" + android:layout_marginTop="100dp" + android:text="@string/workspace_cling_open_all_apps" /> + <Button + style="@style/ClingButton" + android:id="@+id/cling_dismiss" + android:layout_marginTop="160dp" + android:onClick="dismissWorkspaceCling" /> + </FrameLayout> +</com.android.launcher2.Cling>
\ No newline at end of file |