diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:58 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:58 -0800 |
commit | d097a1880f2339705486d50cd8b33c6088fa9fa5 (patch) | |
tree | 711ec61755822f2bda1d4b2719691db2142ed607 /res/layout-land | |
parent | c8f00b61c600927ab404c84686d4472e9b527976 (diff) | |
download | android_packages_apps_Trebuchet-d097a1880f2339705486d50cd8b33c6088fa9fa5.tar.gz android_packages_apps_Trebuchet-d097a1880f2339705486d50cd8b33c6088fa9fa5.tar.bz2 android_packages_apps_Trebuchet-d097a1880f2339705486d50cd8b33c6088fa9fa5.zip |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'res/layout-land')
-rw-r--r-- | res/layout-land/application_boxed.xml | 8 | ||||
-rw-r--r-- | res/layout-land/launcher.xml | 28 | ||||
-rw-r--r-- | res/layout-land/live_folder_grid.xml | 49 | ||||
-rw-r--r-- | res/layout-land/live_folder_icon.xml | 21 |
4 files changed, 92 insertions, 14 deletions
diff --git a/res/layout-land/application_boxed.xml b/res/layout-land/application_boxed.xml index 3cec8d0be..63d2254b4 100644 --- a/res/layout-land/application_boxed.xml +++ b/res/layout-land/application_boxed.xml @@ -15,15 +15,17 @@ --> <TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/name" android:layout_width="fill_parent" android:layout_height="88dip" - android:paddingTop="6dip" - android:paddingBottom="3dip" + android:paddingTop="5dip" + android:paddingBottom="2dip" android:drawablePadding="0dip" android:textSize="13dip" android:maxLines="2" - android:ellipsize="end" + android:ellipsize="marquee" + android:fadingEdge="horizontal" android:textColor="@color/bright_text_dark_focused" android:gravity="top|center_horizontal" /> diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index e93ef31d2..11a81fd8e 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -16,6 +16,7 @@ <com.android.launcher.DragLayer xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" android:id="@+id/drag_layer" @@ -30,9 +31,9 @@ launcher:defaultScreen="1"> - <include layout="@layout/workspace_screen" /> - <include layout="@layout/workspace_screen" /> - <include layout="@layout/workspace_screen" /> + <include android:id="@+id/cell1" layout="@layout/workspace_screen" /> + <include android:id="@+id/cell2" layout="@layout/workspace_screen" /> + <include android:id="@+id/cell3" layout="@layout/workspace_screen" /> </com.android.launcher.Workspace> @@ -42,19 +43,24 @@ android:layout_height="fill_parent" android:orientation="horizontal" - android:bottomOffset="7px" - android:handle="@+id/all_apps" - android:content="@+id/content"> - - <ImageView + androidprv:bottomOffset="7px" + androidprv:handle="@+id/all_apps" + androidprv:content="@+id/content"> + + <com.android.launcher.HandleView android:id="@id/all_apps" + android:layout_width="56dip" + android:layout_height="fill_parent" + + android:background="@drawable/handle" + android:focusable="true" android:clickable="true" + android:scaleType="center" android:src="@drawable/handle_icon" - android:background="@drawable/handle" - android:layout_height="fill_parent" - android:layout_width="56dip" /> + + launcher:direction="vertical" /> <com.android.launcher.AllAppsGridView android:id="@id/content" diff --git a/res/layout-land/live_folder_grid.xml b/res/layout-land/live_folder_grid.xml new file mode 100644 index 000000000..d1b02a4a6 --- /dev/null +++ b/res/layout-land/live_folder_grid.xml @@ -0,0 +1,49 @@ +<?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. + */ +--> + +<com.android.launcher.LiveFolder xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical"> + + <Button + android:id="@+id/close" + android:background="@drawable/box_launcher_top" + android:gravity="left|center_vertical" + android:textSize="14sp" + android:textColor="#404040" + android:textStyle="bold" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + <GridView + android:id="@id/content" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" + + android:background="@drawable/box_launcher_bottom" + + android:scrollbarAlwaysDrawVerticalTrack="true" + android:scrollbarStyle="insideInset" + android:drawSelectorOnTop="false" + android:listSelector="@drawable/grid_selector" + + android:verticalSpacing="10dip" + android:numColumns="5" /> + +</com.android.launcher.LiveFolder> diff --git a/res/layout-land/live_folder_icon.xml b/res/layout-land/live_folder_icon.xml new file mode 100644 index 000000000..7b6d58dad --- /dev/null +++ b/res/layout-land/live_folder_icon.xml @@ -0,0 +1,21 @@ +<?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. + */ +--> + +<com.android.launcher.LiveFolderIcon xmlns:android="http://schemas.android.com/apk/res/android" + style="@style/WorkspaceIcon.Landscape" /> |