summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2010-12-01 15:47:31 -0800
committerWinson Chung <winsonc@google.com>2010-12-01 18:58:17 -0800
commit29d6fea296ebecb607525c8245a54696ad7c5db7 (patch)
tree3d10d23a00fe7e649859f2bdc62e6355f9047748 /res
parentf28958bc003177cc98ed9bde62f412811784ec14 (diff)
downloadpackages_apps_trebuchet-29d6fea296ebecb607525c8245a54696ad7c5db7.zip
packages_apps_trebuchet-29d6fea296ebecb607525c8245a54696ad7c5db7.tar.gz
packages_apps_trebuchet-29d6fea296ebecb607525c8245a54696ad7c5db7.tar.bz2
Adding outlines to side pages for widgets and wallpaper pages in the customization tray.
Change-Id: Ib2ec5e630c1c861003d0e0b5672ed69ef25c0b47
Diffstat (limited to 'res')
-rw-r--r--res/layout-xlarge-land/customization_drawer.xml2
-rw-r--r--res/layout-xlarge/customize_paged_view_wallpaper.xml10
-rw-r--r--res/layout-xlarge/customize_paged_view_widget.xml9
-rw-r--r--res/values/attrs.xml9
4 files changed, 22 insertions, 8 deletions
diff --git a/res/layout-xlarge-land/customization_drawer.xml b/res/layout-xlarge-land/customization_drawer.xml
index 304aaf7..3fff2b0 100644
--- a/res/layout-xlarge-land/customization_drawer.xml
+++ b/res/layout-xlarge-land/customization_drawer.xml
@@ -19,7 +19,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
- launcher:wallpaperCellSpanX="4"
+ launcher:wallpaperCellSpanX="3"
launcher:widgetCellCountX="16"
launcher:cellCountX="8"
launcher:cellCountY="3"
diff --git a/res/layout-xlarge/customize_paged_view_wallpaper.xml b/res/layout-xlarge/customize_paged_view_wallpaper.xml
index 6cf248a..e3be86d 100644
--- a/res/layout-xlarge/customize_paged_view_wallpaper.xml
+++ b/res/layout-xlarge/customize_paged_view_wallpaper.xml
@@ -13,8 +13,9 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<LinearLayout
+<com.android.launcher2.PagedViewWidget
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
android:layout_width="wrap_content"
android:layout_height="365dp"
@@ -22,7 +23,10 @@
android:paddingRight="12.5dp"
android:paddingBottom="50dp"
android:gravity="top"
- android:orientation="vertical">
+ android:orientation="vertical"
+
+ launcher:blurColor="#FF6B8CF0"
+ launcher:outlineColor="#FF8CD2FF">
<!-- The preview image for the wallpaper. -->
<ImageView
@@ -57,4 +61,4 @@
android:maxLines="2"
android:fadingEdge="horizontal" />
-</LinearLayout>
+</com.android.launcher2.PagedViewWidget>
diff --git a/res/layout-xlarge/customize_paged_view_widget.xml b/res/layout-xlarge/customize_paged_view_widget.xml
index deeeb3d..3b95ebc 100644
--- a/res/layout-xlarge/customize_paged_view_widget.xml
+++ b/res/layout-xlarge/customize_paged_view_widget.xml
@@ -13,20 +13,21 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<LinearLayout
+<com.android.launcher2.PagedViewWidget
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
android:layout_width="wrap_content"
android:layout_height="365dp"
android:paddingLeft="12.5dp"
+ android:paddingTop="12.5dp"
android:paddingRight="12.5dp"
android:paddingBottom="50dp"
android:gravity="top"
android:orientation="vertical"
- launcher:checkedBlurColor="#FFDAFF71"
- launcher:checkedOutlineColor="#FFCFFF9C">
+ launcher:blurColor="#FF6B8CF0"
+ launcher:outlineColor="#FF8CD2FF">
<!-- The icon of the widget. -->
<ImageView
@@ -76,4 +77,4 @@
android:shadowDx="0.0"
android:shadowDy="1.0"
android:shadowRadius="1.0" />
-</LinearLayout>
+</com.android.launcher2.PagedViewWidget>
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 975548e..853d49e 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -74,6 +74,15 @@
<attr name="checkedOutlineColor" format="color" />
</declare-styleable>
+ <!-- PagedViewWidget specific attributes. These attributes are used to
+ customize a PagedViewWidget view in XML files. -->
+ <declare-styleable name="PagedViewWidget">
+ <!-- The blur color of the holographic outline -->
+ <attr name="blurColor" />
+ <!-- The outline color of the holographic outline -->
+ <attr name="outlineColor" />
+ </declare-styleable>
+
<!-- PagedView specific attributes. These attributes are used to customize
a PagedView view in XML files. -->
<declare-styleable name="PagedView">