diff options
author | Michael Jurka <mikejurka@google.com> | 2013-12-10 16:59:20 +0100 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2013-12-10 18:28:50 +0100 |
commit | 8e88cb84781907afb7cca80581fea2277264fd2c (patch) | |
tree | bb7ff17add61df64806b7e14eb01d59144908366 /wallpaper_picker_res | |
parent | 33231f587e1a6f716af68e6198df774d2847a8e5 (diff) | |
download | android_packages_apps_Trebuchet-8e88cb84781907afb7cca80581fea2277264fd2c.tar.gz android_packages_apps_Trebuchet-8e88cb84781907afb7cca80581fea2277264fd2c.tar.bz2 android_packages_apps_Trebuchet-8e88cb84781907afb7cca80581fea2277264fd2c.zip |
Move wallpaper picker code to a separate directory
Change-Id: Id79d11ed08085c4fe356739498a8b77952e30392
Diffstat (limited to 'wallpaper_picker_res')
47 files changed, 570 insertions, 0 deletions
diff --git a/wallpaper_picker_res/drawable-hdpi/ic_actionbar_accept.png b/wallpaper_picker_res/drawable-hdpi/ic_actionbar_accept.png Binary files differnew file mode 100755 index 000000000..53cf6877e --- /dev/null +++ b/wallpaper_picker_res/drawable-hdpi/ic_actionbar_accept.png diff --git a/wallpaper_picker_res/drawable-hdpi/ic_images.png b/wallpaper_picker_res/drawable-hdpi/ic_images.png Binary files differnew file mode 100644 index 000000000..0003c6c65 --- /dev/null +++ b/wallpaper_picker_res/drawable-hdpi/ic_images.png diff --git a/wallpaper_picker_res/drawable-hdpi/tile_picker_focused.9.png b/wallpaper_picker_res/drawable-hdpi/tile_picker_focused.9.png Binary files differnew file mode 100644 index 000000000..c72d6a2c6 --- /dev/null +++ b/wallpaper_picker_res/drawable-hdpi/tile_picker_focused.9.png diff --git a/wallpaper_picker_res/drawable-hdpi/tile_picker_pressed.9.png b/wallpaper_picker_res/drawable-hdpi/tile_picker_pressed.9.png Binary files differnew file mode 100644 index 000000000..44c65ac3c --- /dev/null +++ b/wallpaper_picker_res/drawable-hdpi/tile_picker_pressed.9.png diff --git a/wallpaper_picker_res/drawable-hdpi/tile_picker_selected.9.png b/wallpaper_picker_res/drawable-hdpi/tile_picker_selected.9.png Binary files differnew file mode 100644 index 000000000..461bacbcb --- /dev/null +++ b/wallpaper_picker_res/drawable-hdpi/tile_picker_selected.9.png diff --git a/wallpaper_picker_res/drawable-hdpi/tile_shadow_bottom.9.png b/wallpaper_picker_res/drawable-hdpi/tile_shadow_bottom.9.png Binary files differnew file mode 100644 index 000000000..e80558bad --- /dev/null +++ b/wallpaper_picker_res/drawable-hdpi/tile_shadow_bottom.9.png diff --git a/wallpaper_picker_res/drawable-hdpi/tile_shadow_top.9.png b/wallpaper_picker_res/drawable-hdpi/tile_shadow_top.9.png Binary files differnew file mode 100644 index 000000000..7e93865e7 --- /dev/null +++ b/wallpaper_picker_res/drawable-hdpi/tile_shadow_top.9.png diff --git a/wallpaper_picker_res/drawable-mdpi/ic_actionbar_accept.png b/wallpaper_picker_res/drawable-mdpi/ic_actionbar_accept.png Binary files differnew file mode 100755 index 000000000..35cda8e11 --- /dev/null +++ b/wallpaper_picker_res/drawable-mdpi/ic_actionbar_accept.png diff --git a/wallpaper_picker_res/drawable-mdpi/ic_images.png b/wallpaper_picker_res/drawable-mdpi/ic_images.png Binary files differnew file mode 100644 index 000000000..aabc1237a --- /dev/null +++ b/wallpaper_picker_res/drawable-mdpi/ic_images.png diff --git a/wallpaper_picker_res/drawable-mdpi/tile_picker_focused.9.png b/wallpaper_picker_res/drawable-mdpi/tile_picker_focused.9.png Binary files differnew file mode 100644 index 000000000..13b325b87 --- /dev/null +++ b/wallpaper_picker_res/drawable-mdpi/tile_picker_focused.9.png diff --git a/wallpaper_picker_res/drawable-mdpi/tile_picker_pressed.9.png b/wallpaper_picker_res/drawable-mdpi/tile_picker_pressed.9.png Binary files differnew file mode 100644 index 000000000..4e8196d36 --- /dev/null +++ b/wallpaper_picker_res/drawable-mdpi/tile_picker_pressed.9.png diff --git a/wallpaper_picker_res/drawable-mdpi/tile_picker_selected.9.png b/wallpaper_picker_res/drawable-mdpi/tile_picker_selected.9.png Binary files differnew file mode 100644 index 000000000..eee69ec6d --- /dev/null +++ b/wallpaper_picker_res/drawable-mdpi/tile_picker_selected.9.png diff --git a/wallpaper_picker_res/drawable-mdpi/tile_shadow_bottom.9.png b/wallpaper_picker_res/drawable-mdpi/tile_shadow_bottom.9.png Binary files differnew file mode 100644 index 000000000..d95787bac --- /dev/null +++ b/wallpaper_picker_res/drawable-mdpi/tile_shadow_bottom.9.png diff --git a/wallpaper_picker_res/drawable-mdpi/tile_shadow_top.9.png b/wallpaper_picker_res/drawable-mdpi/tile_shadow_top.9.png Binary files differnew file mode 100644 index 000000000..8da913cc4 --- /dev/null +++ b/wallpaper_picker_res/drawable-mdpi/tile_shadow_top.9.png diff --git a/wallpaper_picker_res/drawable-xhdpi/ic_actionbar_accept.png b/wallpaper_picker_res/drawable-xhdpi/ic_actionbar_accept.png Binary files differnew file mode 100755 index 000000000..b52dc3701 --- /dev/null +++ b/wallpaper_picker_res/drawable-xhdpi/ic_actionbar_accept.png diff --git a/wallpaper_picker_res/drawable-xhdpi/ic_images.png b/wallpaper_picker_res/drawable-xhdpi/ic_images.png Binary files differnew file mode 100644 index 000000000..3f21faf8f --- /dev/null +++ b/wallpaper_picker_res/drawable-xhdpi/ic_images.png diff --git a/wallpaper_picker_res/drawable-xhdpi/tile_picker_focused.9.png b/wallpaper_picker_res/drawable-xhdpi/tile_picker_focused.9.png Binary files differnew file mode 100644 index 000000000..279e85963 --- /dev/null +++ b/wallpaper_picker_res/drawable-xhdpi/tile_picker_focused.9.png diff --git a/wallpaper_picker_res/drawable-xhdpi/tile_picker_pressed.9.png b/wallpaper_picker_res/drawable-xhdpi/tile_picker_pressed.9.png Binary files differnew file mode 100644 index 000000000..abe0e0080 --- /dev/null +++ b/wallpaper_picker_res/drawable-xhdpi/tile_picker_pressed.9.png diff --git a/wallpaper_picker_res/drawable-xhdpi/tile_picker_selected.9.png b/wallpaper_picker_res/drawable-xhdpi/tile_picker_selected.9.png Binary files differnew file mode 100644 index 000000000..b047591ac --- /dev/null +++ b/wallpaper_picker_res/drawable-xhdpi/tile_picker_selected.9.png diff --git a/wallpaper_picker_res/drawable-xhdpi/tile_shadow_bottom.9.png b/wallpaper_picker_res/drawable-xhdpi/tile_shadow_bottom.9.png Binary files differnew file mode 100644 index 000000000..81571f3b7 --- /dev/null +++ b/wallpaper_picker_res/drawable-xhdpi/tile_shadow_bottom.9.png diff --git a/wallpaper_picker_res/drawable-xhdpi/tile_shadow_top.9.png b/wallpaper_picker_res/drawable-xhdpi/tile_shadow_top.9.png Binary files differnew file mode 100644 index 000000000..8503a59fe --- /dev/null +++ b/wallpaper_picker_res/drawable-xhdpi/tile_shadow_top.9.png diff --git a/wallpaper_picker_res/drawable-xxhdpi/ic_images.png b/wallpaper_picker_res/drawable-xxhdpi/ic_images.png Binary files differnew file mode 100644 index 000000000..d00db9a00 --- /dev/null +++ b/wallpaper_picker_res/drawable-xxhdpi/ic_images.png diff --git a/wallpaper_picker_res/drawable-xxhdpi/tile_picker_focused.9.png b/wallpaper_picker_res/drawable-xxhdpi/tile_picker_focused.9.png Binary files differnew file mode 100644 index 000000000..1004c14b8 --- /dev/null +++ b/wallpaper_picker_res/drawable-xxhdpi/tile_picker_focused.9.png diff --git a/wallpaper_picker_res/drawable-xxhdpi/tile_picker_pressed.9.png b/wallpaper_picker_res/drawable-xxhdpi/tile_picker_pressed.9.png Binary files differnew file mode 100644 index 000000000..9658444a1 --- /dev/null +++ b/wallpaper_picker_res/drawable-xxhdpi/tile_picker_pressed.9.png diff --git a/wallpaper_picker_res/drawable-xxhdpi/tile_picker_selected.9.png b/wallpaper_picker_res/drawable-xxhdpi/tile_picker_selected.9.png Binary files differnew file mode 100644 index 000000000..a3cd30369 --- /dev/null +++ b/wallpaper_picker_res/drawable-xxhdpi/tile_picker_selected.9.png diff --git a/wallpaper_picker_res/drawable-xxhdpi/tile_shadow_bottom.9.png b/wallpaper_picker_res/drawable-xxhdpi/tile_shadow_bottom.9.png Binary files differnew file mode 100644 index 000000000..55250f041 --- /dev/null +++ b/wallpaper_picker_res/drawable-xxhdpi/tile_shadow_bottom.9.png diff --git a/wallpaper_picker_res/drawable-xxhdpi/tile_shadow_top.9.png b/wallpaper_picker_res/drawable-xxhdpi/tile_shadow_top.9.png Binary files differnew file mode 100644 index 000000000..3f2263364 --- /dev/null +++ b/wallpaper_picker_res/drawable-xxhdpi/tile_shadow_top.9.png diff --git a/wallpaper_picker_res/drawable/wallpaper_tile_fg.xml b/wallpaper_picker_res/drawable/wallpaper_tile_fg.xml new file mode 100644 index 000000000..c299f32c6 --- /dev/null +++ b/wallpaper_picker_res/drawable/wallpaper_tile_fg.xml @@ -0,0 +1,23 @@ +<?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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_checked="true" android:drawable="@drawable/tile_picker_selected" /> + <item android:state_focused="true" android:drawable="@drawable/tile_picker_focused" /> + <item android:state_pressed="true" android:drawable="@drawable/tile_picker_pressed" /> + <item android:state_selected="true" android:drawable="@drawable/tile_picker_selected" /> + <item android:drawable="@android:color/transparent" /> +</selector> diff --git a/wallpaper_picker_res/layout/actionbar_set_wallpaper.xml b/wallpaper_picker_res/layout/actionbar_set_wallpaper.xml new file mode 100644 index 000000000..1622742a5 --- /dev/null +++ b/wallpaper_picker_res/layout/actionbar_set_wallpaper.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 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. +*/ +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + style="?android:actionButtonStyle" + android:layout_width="match_parent" + android:layout_height="match_parent" > + <TextView style="?android:actionBarTabTextStyle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="start|center_vertical" + android:paddingRight="20dp" + android:drawableLeft="@drawable/ic_actionbar_accept" + android:drawablePadding="8dp" + android:gravity="center_vertical" + android:text="@string/wallpaper_instructions" /> +</FrameLayout> diff --git a/wallpaper_picker_res/layout/wallpaper_cropper.xml b/wallpaper_picker_res/layout/wallpaper_cropper.xml new file mode 100644 index 000000000..abb860898 --- /dev/null +++ b/wallpaper_picker_res/layout/wallpaper_cropper.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 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. +*/ +--> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/wallpaper_root" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <com.android.launcher3.CropView + android:id="@+id/cropView" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + <ProgressBar + android:id="@+id/loading" + style="@android:style/Widget.Holo.ProgressBar.Large" + android:visibility="invisible" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:indeterminate="true" + android:indeterminateOnly="true" + android:background="@android:color/transparent" /> +</RelativeLayout> diff --git a/wallpaper_picker_res/layout/wallpaper_picker.xml b/wallpaper_picker_res/layout/wallpaper_picker.xml new file mode 100644 index 000000000..c36493d2f --- /dev/null +++ b/wallpaper_picker_res/layout/wallpaper_picker.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 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. +*/ +--> + +<com.android.launcher3.WallpaperRootView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/wallpaper_root" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <com.android.launcher3.CropView + android:id="@+id/cropView" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + <ProgressBar + android:id="@+id/loading" + style="@android:style/Widget.Holo.ProgressBar.Large" + android:visibility="invisible" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:indeterminate="true" + android:indeterminateOnly="true" + android:background="@android:color/transparent" /> + <LinearLayout + android:id="@+id/wallpaper_strip" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:orientation="vertical" > + <View + android:layout_width="match_parent" + android:layout_height="2dp" + android:background="@drawable/tile_shadow_top" /> + <HorizontalScrollView + android:id="@+id/wallpaper_scroll_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + <LinearLayout android:id="@+id/master_wallpaper_list" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" > + <LinearLayout android:id="@+id/wallpaper_list" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" /> + <LinearLayout android:id="@+id/live_wallpaper_list" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" /> + <LinearLayout android:id="@+id/third_party_wallpaper_list" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" /> + </LinearLayout> + </HorizontalScrollView> + <View + android:layout_width="match_parent" + android:layout_height="2dp" + android:background="@drawable/tile_shadow_bottom" /> + </LinearLayout> +</com.android.launcher3.WallpaperRootView> diff --git a/wallpaper_picker_res/layout/wallpaper_picker_image_picker_item.xml b/wallpaper_picker_res/layout/wallpaper_picker_image_picker_item.xml new file mode 100644 index 000000000..ae3c43d8e --- /dev/null +++ b/wallpaper_picker_res/layout/wallpaper_picker_image_picker_item.xml @@ -0,0 +1,42 @@ +<?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.launcher3.CheckableFrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="@dimen/wallpaperThumbnailWidth" + android:layout_height="@dimen/wallpaperThumbnailHeight" + android:focusable="true" + android:clickable="true" + android:background="@drawable/wallpaper_tile_fg" + android:foreground="@drawable/wallpaper_tile_fg"> + <ImageView + android:id="@+id/wallpaper_image" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/wallpaper_picker_translucent_gray" + android:scaleType="centerCrop" /> + <TextView + android:id="@+id/wallpaper_item_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="marquee" + android:gravity="center" + android:layout_gravity="center" + android:text="@string/pick_image" + android:drawableTop="@drawable/ic_images" + android:drawablePadding="4dp" + android:textColor="@android:color/white"/> +</com.android.launcher3.CheckableFrameLayout> diff --git a/wallpaper_picker_res/layout/wallpaper_picker_item.xml b/wallpaper_picker_res/layout/wallpaper_picker_item.xml new file mode 100644 index 000000000..0ac8f97fb --- /dev/null +++ b/wallpaper_picker_res/layout/wallpaper_picker_item.xml @@ -0,0 +1,30 @@ +<?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.launcher3.CheckableFrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="@dimen/wallpaperThumbnailWidth" + android:layout_height="@dimen/wallpaperThumbnailHeight" + android:focusable="true" + android:clickable="true" + android:background="@drawable/wallpaper_tile_fg" + android:foreground="@drawable/wallpaper_tile_fg"> + <ImageView + android:id="@+id/wallpaper_image" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerCrop" /> +</com.android.launcher3.CheckableFrameLayout> diff --git a/wallpaper_picker_res/layout/wallpaper_picker_live_wallpaper_item.xml b/wallpaper_picker_res/layout/wallpaper_picker_live_wallpaper_item.xml new file mode 100644 index 000000000..29fdb1b82 --- /dev/null +++ b/wallpaper_picker_res/layout/wallpaper_picker_live_wallpaper_item.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.launcher3.CheckableFrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="@dimen/wallpaperThumbnailWidth" + android:layout_height="@dimen/wallpaperThumbnailHeight" + android:focusable="true" + android:clickable="true" + android:background="@drawable/wallpaper_tile_fg" + android:foreground="@drawable/wallpaper_tile_fg"> + <ImageView + android:id="@+id/wallpaper_image" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:background="@android:color/black" + android:scaleType="centerCrop" /> + <ImageView + android:id="@+id/wallpaper_icon" + android:layout_width="@dimen/wallpaperItemIconSize" + android:layout_height="@dimen/wallpaperItemIconSize" + android:layout_gravity="center" + android:visibility="gone" /> + <TextView + android:id="@+id/wallpaper_item_label" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:ellipsize="marquee" + android:gravity="center" + android:padding="4dp" + android:layout_gravity="bottom" + android:background="@color/wallpaper_picker_translucent_gray" + android:textColor="@android:color/white"/> +</com.android.launcher3.CheckableFrameLayout> diff --git a/wallpaper_picker_res/layout/wallpaper_picker_third_party_item.xml b/wallpaper_picker_res/layout/wallpaper_picker_third_party_item.xml new file mode 100644 index 000000000..68661bc00 --- /dev/null +++ b/wallpaper_picker_res/layout/wallpaper_picker_third_party_item.xml @@ -0,0 +1,40 @@ +<?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.launcher3.CheckableFrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="@dimen/wallpaperThumbnailWidth" + android:layout_height="@dimen/wallpaperThumbnailHeight" + android:focusable="true" + android:clickable="true" + android:background="@drawable/wallpaper_tile_fg" + android:foreground="@drawable/wallpaper_tile_fg"> + <ImageView + android:id="@+id/wallpaper_image" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/wallpaper_picker_translucent_gray" + android:scaleType="centerCrop" /> + <TextView + android:id="@+id/wallpaper_item_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="marquee" + android:gravity="center" + android:layout_gravity="center" + android:drawablePadding="4dp" + android:textColor="@android:color/white"/> +</com.android.launcher3.CheckableFrameLayout> diff --git a/wallpaper_picker_res/menu/cab_delete_wallpapers.xml b/wallpaper_picker_res/menu/cab_delete_wallpapers.xml new file mode 100644 index 000000000..38ac5c4d6 --- /dev/null +++ b/wallpaper_picker_res/menu/cab_delete_wallpapers.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 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. +*/ +--> + +<menu xmlns:android="http://schemas.android.com/apk/res/android" > + <item + android:id="@+id/menu_delete" + android:title="@string/wallpaper_delete" + android:showAsAction="always" + android:icon="@android:drawable/ic_menu_delete" /> +</menu> diff --git a/wallpaper_picker_res/mipmap-hdpi/ic_launcher_wallpaper.png b/wallpaper_picker_res/mipmap-hdpi/ic_launcher_wallpaper.png Binary files differnew file mode 100644 index 000000000..affee851d --- /dev/null +++ b/wallpaper_picker_res/mipmap-hdpi/ic_launcher_wallpaper.png diff --git a/wallpaper_picker_res/mipmap-mdpi/ic_launcher_wallpaper.png b/wallpaper_picker_res/mipmap-mdpi/ic_launcher_wallpaper.png Binary files differnew file mode 100644 index 000000000..cb4443bdb --- /dev/null +++ b/wallpaper_picker_res/mipmap-mdpi/ic_launcher_wallpaper.png diff --git a/wallpaper_picker_res/mipmap-xhdpi/ic_launcher_wallpaper.png b/wallpaper_picker_res/mipmap-xhdpi/ic_launcher_wallpaper.png Binary files differnew file mode 100644 index 000000000..60f8dceec --- /dev/null +++ b/wallpaper_picker_res/mipmap-xhdpi/ic_launcher_wallpaper.png diff --git a/wallpaper_picker_res/mipmap-xxhdpi/ic_launcher_wallpaper.png b/wallpaper_picker_res/mipmap-xxhdpi/ic_launcher_wallpaper.png Binary files differnew file mode 100644 index 000000000..023fb5886 --- /dev/null +++ b/wallpaper_picker_res/mipmap-xxhdpi/ic_launcher_wallpaper.png diff --git a/wallpaper_picker_res/values-nodpi/wallpapers.xml b/wallpaper_picker_res/values-nodpi/wallpapers.xml new file mode 100644 index 000000000..1e340e4b2 --- /dev/null +++ b/wallpaper_picker_res/values-nodpi/wallpapers.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + * Copyright (C) 2009 Google Inc. + * + * 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. + --> + +<resources> + <string-array name="wallpapers" translatable="false"> + </string-array> +</resources> diff --git a/wallpaper_picker_res/values-sw720dp/dimens.xml b/wallpaper_picker_res/values-sw720dp/dimens.xml new file mode 100644 index 000000000..9ae155b3c --- /dev/null +++ b/wallpaper_picker_res/values-sw720dp/dimens.xml @@ -0,0 +1,28 @@ +<?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. +--> + +<resources> + <dimen name="app_icon_size">72dp</dimen> + +<!-- QSB --> + <dimen name="toolbar_button_vertical_padding">8dip</dimen> + <dimen name="toolbar_button_horizontal_padding">8dip</dimen> + + <!-- When dragging items on the workspace, the number of dps by which the position of + the drag view should be offset from the position of the original view. --> + <dimen name="dragViewOffsetX">0dp</dimen> + <dimen name="dragViewOffsetY">0dp</dimen> +</resources> diff --git a/wallpaper_picker_res/values-sw720dp/styles.xml b/wallpaper_picker_res/values-sw720dp/styles.xml new file mode 100644 index 000000000..91078517d --- /dev/null +++ b/wallpaper_picker_res/values-sw720dp/styles.xml @@ -0,0 +1,26 @@ +<?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. +*/ +--> + +<resources> + <style name="Theme" parent="android:Theme.Holo.Wallpaper.NoTitleBar"> + <item name="android:windowActionModeOverlay">true</item> + <item name="android:windowTranslucentStatus">true</item> + <item name="android:windowTranslucentNavigation">true</item> + </style> +</resources> diff --git a/wallpaper_picker_res/values/colors.xml b/wallpaper_picker_res/values/colors.xml new file mode 100644 index 000000000..adae7cff6 --- /dev/null +++ b/wallpaper_picker_res/values/colors.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/apps/common/assets/res/any/colors.xml +** +** Copyright 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. +*/ +--> +<resources> + <color name="wallpaper_picker_translucent_gray">#66000000</color> +</resources> diff --git a/wallpaper_picker_res/values/dimens.xml b/wallpaper_picker_res/values/dimens.xml new file mode 100644 index 000000000..0447c6d1f --- /dev/null +++ b/wallpaper_picker_res/values/dimens.xml @@ -0,0 +1,22 @@ +<?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. +--> + +<resources> +<!-- Wallpaper picker --> + <dimen name="wallpaperThumbnailWidth">106.5dp</dimen> + <dimen name="wallpaperThumbnailHeight">94.5dp</dimen> + <dimen name="wallpaperItemIconSize">32dp</dimen> +</resources> diff --git a/wallpaper_picker_res/values/strings.xml b/wallpaper_picker_res/values/strings.xml new file mode 100644 index 000000000..1ee3513f9 --- /dev/null +++ b/wallpaper_picker_res/values/strings.xml @@ -0,0 +1,53 @@ +<?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. +*/ +--> + +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Button label on Wallpaper picker screen; user selects this button to set a specific wallpaper --> + <string name="wallpaper_instructions">Set wallpaper</string> + <!-- Error message when an image is selected as a wallpaper, + but the wallpaper picker cannot load it --> + <string name="image_load_fail">Coudn\'t load image</string> + <!-- Error message when an image is selected as a wallpaper, + but the wallpaper cropper cannot load it. The user will + usually see this when using another app and trying to set + an image as the wallpaper --> + <string name="wallpaper_load_fail">Couldn\'t load image as wallpaper</string> + <!-- Shown when wallpapers are selected in Wallpaper picker --> + <!-- String indicating how many media item(s) is(are) selected + eg. 1 selected [CHAR LIMIT=30] --> + <plurals name="number_of_items_selected"> + <item quantity="zero">%1$d selected</item> + <item quantity="one">%1$d selected</item> + <item quantity="other">%1$d selected</item> + </plurals> + <!-- Accessibility string used as a label for a particular wallpaper in the Wallpaper Picker list. + e.g. "Wallpaper 3 of 10" --> + <string name="wallpaper_accessibility_name">Wallpaper %1$d of %2$d</string> + <!-- Accessibility string used to announce that a wallpaper has been selected. --> + <string name="announce_selection">Selected <xliff:g id="label" example="Wallpaper 3 of 10">%1$s</xliff:g></string> + + <!-- Label on button to delete wallpaper(s) --> + <string name="wallpaper_delete">Delete</string> + <!-- Label on button in Wallpaper Picker to pick an image --> + <string name="pick_image">Pick image</string> + <!-- Option in "Select wallpaper from" dialog box --> + <string name="pick_wallpaper">Wallpapers</string> + <!-- Title of activity for cropping wallpapers --> + <string name="crop_wallpaper">Crop wallpaper</string> +</resources> diff --git a/wallpaper_picker_res/values/styles.xml b/wallpaper_picker_res/values/styles.xml new file mode 100644 index 000000000..0e48ddac4 --- /dev/null +++ b/wallpaper_picker_res/values/styles.xml @@ -0,0 +1,37 @@ +<?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. +*/ +--> + +<resources> + <style name="Theme.WallpaperCropper" parent="@android:style/Theme.Holo"> + <item name="android:actionBarStyle">@style/WallpaperCropperActionBar</item> + <item name="android:windowFullscreen">true</item> + <item name="android:windowActionBarOverlay">true</item> + <item name="android:windowTranslucentNavigation">true</item> + </style> + + <style name="WallpaperCropperActionBar" parent="android:style/Widget.Holo.ActionBar"> + <item name="android:displayOptions">showCustom</item> + <item name="android:background">#88000000</item> + </style> + + <style name="Theme" parent="@android:style/Theme.Holo.Wallpaper.NoTitleBar"> + <item name="android:windowTranslucentStatus">true</item> + <item name="android:windowTranslucentNavigation">true</item> + </style> +</resources> |