diff options
author | Chris Wren <cwren@android.com> | 2012-08-31 12:46:30 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2012-09-04 12:59:28 -0400 |
commit | c91cbab0936ec64c8078aa8deeb1cfbe0e15cbfa (patch) | |
tree | 4abc9159672334cdf283808537e59b26a36560b2 /res | |
parent | f61019ceb816fed9e5035c3d9b8451f6e4ee1da9 (diff) | |
download | android_packages_screensavers_PhotoTable-c91cbab0936ec64c8078aa8deeb1cfbe0e15cbfa.tar.gz android_packages_screensavers_PhotoTable-c91cbab0936ec64c8078aa8deeb1cfbe0e15cbfa.tar.bz2 android_packages_screensavers_PhotoTable-c91cbab0936ec64c8078aa8deeb1cfbe0e15cbfa.zip |
add a simple photo flipper dream.
Change-Id: I33a5dc491445ba6203e744099187df2760486be6
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/carousel.xml | 36 | ||||
-rw-r--r-- | res/layout/photo.xml | 4 | ||||
-rw-r--r-- | res/mipmap-hdpi/flip.png | bin | 0 -> 9222 bytes | |||
-rw-r--r-- | res/mipmap-mdpi/flip.png | bin | 0 -> 5924 bytes | |||
-rw-r--r-- | res/mipmap-xhdpi/flip.png | bin | 0 -> 11919 bytes | |||
-rw-r--r-- | res/values/config.xml | 3 | ||||
-rw-r--r-- | res/values/strings.xml | 5 |
7 files changed, 44 insertions, 4 deletions
diff --git a/res/layout/carousel.xml b/res/layout/carousel.xml new file mode 100644 index 0000000..bf7ce12 --- /dev/null +++ b/res/layout/carousel.xml @@ -0,0 +1,36 @@ +<?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. +--> +<com.android.dreams.phototable.PhotoCarousel + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/carousel" + android:layout_width="match_parent" + android:layout_height="match_parent" > + <ImageView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/front" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerInside" + /> + <ImageView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/back" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerInside" + android:alpha="0" + android:rotationY="180" + /> +</com.android.dreams.phototable.PhotoCarousel> + diff --git a/res/layout/photo.xml b/res/layout/photo.xml index 1850c21..fb3969a 100644 --- a/res/layout/photo.xml +++ b/res/layout/photo.xml @@ -15,8 +15,8 @@ --> <ImageView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/photo" - android:layout_width="1024dp" - android:layout_height="1024dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:scaleType="centerInside" /> diff --git a/res/mipmap-hdpi/flip.png b/res/mipmap-hdpi/flip.png Binary files differnew file mode 100644 index 0000000..6f5f2b4 --- /dev/null +++ b/res/mipmap-hdpi/flip.png diff --git a/res/mipmap-mdpi/flip.png b/res/mipmap-mdpi/flip.png Binary files differnew file mode 100644 index 0000000..c4ec665 --- /dev/null +++ b/res/mipmap-mdpi/flip.png diff --git a/res/mipmap-xhdpi/flip.png b/res/mipmap-xhdpi/flip.png Binary files differnew file mode 100644 index 0000000..df97926 --- /dev/null +++ b/res/mipmap-xhdpi/flip.png diff --git a/res/values/config.xml b/res/values/config.xml index 74e1bfd..2a848ba 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -23,6 +23,9 @@ <!-- Milliseconds to wait before the next immediate drop.--> <integer name="now_drop">500</integer> + <!-- Length of flip animation in milliseconds.--> + <integer name="flip_duration">500</integer> + <!-- Maximum number of photos to leave on the table.--> <integer name="table_capacity">10</integer> diff --git a/res/values/strings.xml b/res/values/strings.xml index 94e2f9c..897f5b2 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -14,6 +14,7 @@ limitations under the License. --> <resources> - <string name="app_name">Photo Table Screensaver</string> - <string name="screensaver_name">Photo Table</string> + <string name="app_name">Photo Screensavers</string> + <string name="table_screensaver_name">Photo Table</string> + <string name="flipper_screensaver_name">Photo Flipper</string> </resources> |