summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2012-08-16 17:33:34 -0400
committerChris Wren <cwren@android.com>2012-08-23 09:49:39 -0400
commitc8ca07eb52a54efe327d024dc542e0a7f8849bfb (patch)
tree0b708e6bea60854beaf9f4184d857b8ca2bff7e4 /res
parent7a809b2eda2d9cf8439202e03a092e850bfde1dc (diff)
downloadandroid_packages_screensavers_PhotoTable-c8ca07eb52a54efe327d024dc542e0a7f8849bfb.tar.gz
android_packages_screensavers_PhotoTable-c8ca07eb52a54efe327d024dc542e0a7f8849bfb.tar.bz2
android_packages_screensavers_PhotoTable-c8ca07eb52a54efe327d024dc542e0a7f8849bfb.zip
Example Dream: photos
An example screensaver that shows local photos. Change-Id: I2997c4f8ab35777d96df31a46f2f55044e3114c2
Diffstat (limited to 'res')
-rw-r--r--res/anim/slideshow_in.xml5
-rw-r--r--res/anim/slideshow_out.xml7
-rw-r--r--res/drawable-hdpi/icon.pngbin0 -> 4713 bytes
-rw-r--r--res/drawable-ldpi/icon.pngbin0 -> 1707 bytes
-rw-r--r--res/drawable-mdpi/icon.pngbin0 -> 2850 bytes
-rw-r--r--res/drawable-nodpi/frame.9.pngbin0 -> 647 bytes
-rw-r--r--res/drawable-nodpi/photo_039_002.jpgbin0 -> 314891 bytes
-rw-r--r--res/drawable-nodpi/photo_044_002.jpgbin0 -> 252272 bytes
-rw-r--r--res/drawable-nodpi/photo_059_003.jpgbin0 -> 270403 bytes
-rw-r--r--res/drawable-nodpi/photo_070_004.jpgbin0 -> 324820 bytes
-rw-r--r--res/drawable-nodpi/photo_072_001.jpgbin0 -> 364562 bytes
-rw-r--r--res/drawable-nodpi/photo_077_002.jpgbin0 -> 330051 bytes
-rw-r--r--res/drawable-nodpi/photo_098_002.jpgbin0 -> 363659 bytes
-rw-r--r--res/drawable-nodpi/photo_119_003.jpgbin0 -> 483796 bytes
-rw-r--r--res/drawable-nodpi/photo_119_004.jpgbin0 -> 376106 bytes
-rw-r--r--res/drawable-nodpi/photo_126_001.jpgbin0 -> 466321 bytes
-rw-r--r--res/drawable-nodpi/photo_147_002.jpgbin0 -> 340770 bytes
-rw-r--r--res/drawable-nodpi/photo_175_004.jpgbin0 -> 229233 bytes
-rw-r--r--res/drawable-xhdpi/icon.pngbin0 -> 6817 bytes
-rw-r--r--res/layout/photo.xml22
-rw-r--r--res/mipmap-hdpi/icon.pngbin0 -> 4713 bytes
-rw-r--r--res/mipmap-mdpi/icon.pngbin0 -> 2850 bytes
-rw-r--r--res/values-sw600dp/config.xml26
-rw-r--r--res/values-sw800dp/config.xml26
-rw-r--r--res/values/colors.xml18
-rw-r--r--res/values/config.xml33
-rw-r--r--res/values/dimen.xml18
-rw-r--r--res/values/ids.xml20
-rw-r--r--res/values/strings.xml19
29 files changed, 194 insertions, 0 deletions
diff --git a/res/anim/slideshow_in.xml b/res/anim/slideshow_in.xml
new file mode 100644
index 0000000..225b250
--- /dev/null
+++ b/res/anim/slideshow_in.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<alpha xmlns:android="http://schemas.android.com/apk/res/android"
+ android:interpolator="@android:interpolator/decelerate_quad"
+ android:fromAlpha="0.0" android:toAlpha="1.0"
+ android:duration="1500" />
diff --git a/res/anim/slideshow_out.xml b/res/anim/slideshow_out.xml
new file mode 100644
index 0000000..5438e17
--- /dev/null
+++ b/res/anim/slideshow_out.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<alpha xmlns:android="http://schemas.android.com/apk/res/android"
+ android:interpolator="@android:interpolator/accelerate_quad"
+ android:fromAlpha="1.0"
+ android:toAlpha="0.0"
+ android:duration="1500"
+/>
diff --git a/res/drawable-hdpi/icon.png b/res/drawable-hdpi/icon.png
new file mode 100644
index 0000000..b57ffa4
--- /dev/null
+++ b/res/drawable-hdpi/icon.png
Binary files differ
diff --git a/res/drawable-ldpi/icon.png b/res/drawable-ldpi/icon.png
new file mode 100644
index 0000000..d712819
--- /dev/null
+++ b/res/drawable-ldpi/icon.png
Binary files differ
diff --git a/res/drawable-mdpi/icon.png b/res/drawable-mdpi/icon.png
new file mode 100644
index 0000000..5cd2f30
--- /dev/null
+++ b/res/drawable-mdpi/icon.png
Binary files differ
diff --git a/res/drawable-nodpi/frame.9.png b/res/drawable-nodpi/frame.9.png
new file mode 100644
index 0000000..5262ccf
--- /dev/null
+++ b/res/drawable-nodpi/frame.9.png
Binary files differ
diff --git a/res/drawable-nodpi/photo_039_002.jpg b/res/drawable-nodpi/photo_039_002.jpg
new file mode 100644
index 0000000..f2fa084
--- /dev/null
+++ b/res/drawable-nodpi/photo_039_002.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_044_002.jpg b/res/drawable-nodpi/photo_044_002.jpg
new file mode 100644
index 0000000..a05ea32
--- /dev/null
+++ b/res/drawable-nodpi/photo_044_002.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_059_003.jpg b/res/drawable-nodpi/photo_059_003.jpg
new file mode 100644
index 0000000..6689a31
--- /dev/null
+++ b/res/drawable-nodpi/photo_059_003.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_070_004.jpg b/res/drawable-nodpi/photo_070_004.jpg
new file mode 100644
index 0000000..3821443
--- /dev/null
+++ b/res/drawable-nodpi/photo_070_004.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_072_001.jpg b/res/drawable-nodpi/photo_072_001.jpg
new file mode 100644
index 0000000..6ef496a
--- /dev/null
+++ b/res/drawable-nodpi/photo_072_001.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_077_002.jpg b/res/drawable-nodpi/photo_077_002.jpg
new file mode 100644
index 0000000..c3d9386
--- /dev/null
+++ b/res/drawable-nodpi/photo_077_002.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_098_002.jpg b/res/drawable-nodpi/photo_098_002.jpg
new file mode 100644
index 0000000..3012636
--- /dev/null
+++ b/res/drawable-nodpi/photo_098_002.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_119_003.jpg b/res/drawable-nodpi/photo_119_003.jpg
new file mode 100644
index 0000000..7d468e5
--- /dev/null
+++ b/res/drawable-nodpi/photo_119_003.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_119_004.jpg b/res/drawable-nodpi/photo_119_004.jpg
new file mode 100644
index 0000000..a1dc8cd
--- /dev/null
+++ b/res/drawable-nodpi/photo_119_004.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_126_001.jpg b/res/drawable-nodpi/photo_126_001.jpg
new file mode 100644
index 0000000..072006b
--- /dev/null
+++ b/res/drawable-nodpi/photo_126_001.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_147_002.jpg b/res/drawable-nodpi/photo_147_002.jpg
new file mode 100644
index 0000000..3ee61b2
--- /dev/null
+++ b/res/drawable-nodpi/photo_147_002.jpg
Binary files differ
diff --git a/res/drawable-nodpi/photo_175_004.jpg b/res/drawable-nodpi/photo_175_004.jpg
new file mode 100644
index 0000000..5ff2ad2
--- /dev/null
+++ b/res/drawable-nodpi/photo_175_004.jpg
Binary files differ
diff --git a/res/drawable-xhdpi/icon.png b/res/drawable-xhdpi/icon.png
new file mode 100644
index 0000000..5f94c42
--- /dev/null
+++ b/res/drawable-xhdpi/icon.png
Binary files differ
diff --git a/res/layout/photo.xml b/res/layout/photo.xml
new file mode 100644
index 0000000..988dbe4
--- /dev/null
+++ b/res/layout/photo.xml
@@ -0,0 +1,22 @@
+<?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.
+-->
+<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/photo"
+ android:layout_width="1024dp"
+ android:layout_height="1024dp"
+ android:scaleType="centerInside"
+ />
+
diff --git a/res/mipmap-hdpi/icon.png b/res/mipmap-hdpi/icon.png
new file mode 100644
index 0000000..b57ffa4
--- /dev/null
+++ b/res/mipmap-hdpi/icon.png
Binary files differ
diff --git a/res/mipmap-mdpi/icon.png b/res/mipmap-mdpi/icon.png
new file mode 100644
index 0000000..5cd2f30
--- /dev/null
+++ b/res/mipmap-mdpi/icon.png
Binary files differ
diff --git a/res/values-sw600dp/config.xml b/res/values-sw600dp/config.xml
new file mode 100644
index 0000000..74122db
--- /dev/null
+++ b/res/values-sw600dp/config.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 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>
+ <!-- Number of photos to drop when the screensaver starts.-->
+ <integer name="initial_drop">8</integer>
+
+ <!-- Maximum number of photos to leave on the table.-->
+ <integer name="table_capacity">8</integer>
+
+ <!-- Parts per million ratio between image size and screen size. -->
+ <integer name="image_ratio">500000</integer>
+</resources>
+
diff --git a/res/values-sw800dp/config.xml b/res/values-sw800dp/config.xml
new file mode 100644
index 0000000..5288f98
--- /dev/null
+++ b/res/values-sw800dp/config.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 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>
+ <!-- Number of photos to drop when the screensaver starts.-->
+ <integer name="initial_drop">3</integer>
+
+ <!-- Maximum number of photos to leave on the table.-->
+ <integer name="table_capacity">3</integer>
+
+ <!-- Parts per million ratio between image size and screen size. -->
+ <integer name="image_ratio">500000</integer>
+</resources>
+
diff --git a/res/values/colors.xml b/res/values/colors.xml
new file mode 100644
index 0000000..9d5864e
--- /dev/null
+++ b/res/values/colors.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 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="tabletop">#ff444444</color>
+</resources>
diff --git a/res/values/config.xml b/res/values/config.xml
new file mode 100644
index 0000000..f1c9fcc
--- /dev/null
+++ b/res/values/config.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 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>
+ <!-- Milliseconds between drops, needs to be tuned to slide_duration
+ to control the number of photos on the table at any given time. -->
+ <integer name="drop_period">30000</integer>
+
+ <!-- Number of photos to drop when the screensaver starts.-->
+ <integer name="initial_drop">10</integer>
+
+ <!-- Maximum number of photos to leave on the table.-->
+ <integer name="table_capacity">10</integer>
+
+ <!-- Parts per million ratio between image size and screen size. -->
+ <integer name="image_ratio">1000000</integer>
+
+ <!-- Maximum number of image paths to load before shuffling. -->
+ <integer name="image_queue_size">1000</integer>
+</resources>
+
diff --git a/res/values/dimen.xml b/res/values/dimen.xml
new file mode 100644
index 0000000..7e070df
--- /dev/null
+++ b/res/values/dimen.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 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="photo_inset">4px</dimen>
+</resources>
diff --git a/res/values/ids.xml b/res/values/ids.xml
new file mode 100644
index 0000000..3f65a0c
--- /dev/null
+++ b/res/values/ids.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2012 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>
+ <item type="id" name="photo_height" />
+ <item type="id" name="photo_width" />
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
new file mode 100644
index 0000000..94e2f9c
--- /dev/null
+++ b/res/values/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 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>
+ <string name="app_name">Photo Table Screensaver</string>
+ <string name="screensaver_name">Photo Table</string>
+</resources>