summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2012-08-31 12:46:30 -0400
committerChris Wren <cwren@android.com>2012-09-04 12:59:28 -0400
commitc91cbab0936ec64c8078aa8deeb1cfbe0e15cbfa (patch)
tree4abc9159672334cdf283808537e59b26a36560b2 /res/layout
parentf61019ceb816fed9e5035c3d9b8451f6e4ee1da9 (diff)
downloadPhotoTable-c91cbab0936ec64c8078aa8deeb1cfbe0e15cbfa.tar.gz
add a simple photo flipper dream.
Change-Id: I33a5dc491445ba6203e744099187df2760486be6
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/carousel.xml36
-rw-r--r--res/layout/photo.xml4
2 files changed, 38 insertions, 2 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"
/>