diff options
author | Winson Chung <winsonc@google.com> | 2010-11-09 17:19:49 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2010-11-10 11:46:26 -0800 |
commit | 45e1d6ec0a213a444d01466c3d4f1ded5508ed63 (patch) | |
tree | 277917556c14c91b5b4d0045f700b65cf2bef2a9 /res | |
parent | 0811495e242c0312ada9e7873fa290e503295500 (diff) | |
download | android_packages_apps_Trebuchet-45e1d6ec0a213a444d01466c3d4f1ded5508ed63.tar.gz android_packages_apps_Trebuchet-45e1d6ec0a213a444d01466c3d4f1ded5508ed63.tar.bz2 android_packages_apps_Trebuchet-45e1d6ec0a213a444d01466c3d4f1ded5508ed63.zip |
Modifying wallpapers customization page to look like widgets.
- Disallowing touch handling when there are no children
Change-Id: I925d6f1f862f8c7994a80c4eaacc80f8d59f6ab2
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-xlarge-land/customization_drawer.xml | 1 | ||||
-rw-r--r-- | res/layout-xlarge-port/customization_drawer.xml | 1 | ||||
-rw-r--r-- | res/layout-xlarge/customize_paged_view_wallpaper.xml | 60 | ||||
-rw-r--r-- | res/layout-xlarge/customize_paged_view_widget.xml | 4 | ||||
-rw-r--r-- | res/values/attrs.xml | 11 |
5 files changed, 66 insertions, 11 deletions
diff --git a/res/layout-xlarge-land/customization_drawer.xml b/res/layout-xlarge-land/customization_drawer.xml index 911525961..304aaf70a 100644 --- a/res/layout-xlarge-land/customization_drawer.xml +++ b/res/layout-xlarge-land/customization_drawer.xml @@ -19,6 +19,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" + launcher:wallpaperCellSpanX="4" launcher:widgetCellCountX="16" launcher:cellCountX="8" launcher:cellCountY="3" diff --git a/res/layout-xlarge-port/customization_drawer.xml b/res/layout-xlarge-port/customization_drawer.xml index 28127ea67..a9e1c0df3 100644 --- a/res/layout-xlarge-port/customization_drawer.xml +++ b/res/layout-xlarge-port/customization_drawer.xml @@ -19,6 +19,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" + launcher:wallpaperCellSpanX="4" launcher:widgetCellCountX="10" launcher:cellCountX="5" launcher:cellCountY="3" diff --git a/res/layout-xlarge/customize_paged_view_wallpaper.xml b/res/layout-xlarge/customize_paged_view_wallpaper.xml new file mode 100644 index 000000000..6cf248ad2 --- /dev/null +++ b/res/layout-xlarge/customize_paged_view_wallpaper.xml @@ -0,0 +1,60 @@ +<?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. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + + android:layout_width="wrap_content" + android:layout_height="365dp" + android:paddingLeft="12.5dp" + android:paddingRight="12.5dp" + android:paddingBottom="50dp" + android:gravity="top" + android:orientation="vertical"> + + <!-- The preview image for the wallpaper. --> + <ImageView + android:id="@+id/wallpaper_preview" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1.0" + android:scaleType="fitStart" /> + + <!-- The divider image. --> + <ImageView + android:id="@+id/divider" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingTop="10dp" + android:paddingBottom="10dp" + android:src="@drawable/widget_divider" /> + + <!-- The name of the wallpaper --> + <TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/wallpaper_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="left" + + android:textColor="#FFFFFFFF" + android:textSize="14sp" + android:shadowColor="#FF000000" + android:shadowDx="0.0" + android:shadowDy="1.0" + android:shadowRadius="1.0" + + android:maxLines="2" + android:fadingEdge="horizontal" /> +</LinearLayout> diff --git a/res/layout-xlarge/customize_paged_view_widget.xml b/res/layout-xlarge/customize_paged_view_widget.xml index fab2a9b87..deeeb3d52 100644 --- a/res/layout-xlarge/customize_paged_view_widget.xml +++ b/res/layout-xlarge/customize_paged_view_widget.xml @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> -<com.android.launcher2.PagedViewWidgetIcon +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" @@ -76,4 +76,4 @@ android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="1.0" /> -</com.android.launcher2.PagedViewWidgetIcon> +</LinearLayout> diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 5d6773c48..975548e9c 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -74,15 +74,6 @@ <attr name="checkedOutlineColor" format="color" /> </declare-styleable> - <!-- PagedViewWidgetIcon specific attributes. These attributes are used to - customize a PagedViewWidgetIcon view in XML files. --> - <declare-styleable name="PagedViewWidgetIcon"> - <!-- The checked blur color of the holographic outline --> - <attr name="checkedBlurColor" /> - <!-- The checked outline color of the holographic outline --> - <attr name="checkedOutlineColor" /> - </declare-styleable> - <!-- PagedView specific attributes. These attributes are used to customize a PagedView view in XML files. --> <declare-styleable name="PagedView"> @@ -105,6 +96,8 @@ <!-- CustomizePagedView specific attributes. These attributes are used to customize a CustomizePagedView view in XML files. --> <declare-styleable name="CustomizePagedView"> + <!-- The cell span of an item in the wallpapers tab --> + <attr name="wallpaperCellSpanX" format="integer" /> <!-- The number of horizontal cells for the widget tab --> <attr name="widgetCellCountX" format="integer" /> </declare-styleable> |