1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2011 Google Inc.
4     Licensed to The Android Open Source Project.
5
6     Licensed under the Apache License, Version 2.0 (the "License");
7     you may not use this file except in compliance with the License.
8     You may obtain a copy of the License at
9
10          http://www.apache.org/licenses/LICENSE-2.0
11
12     Unless required by applicable law or agreed to in writing, software
13     distributed under the License is distributed on an "AS IS" BASIS,
14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15     See the License for the specific language governing permissions and
16     limitations under the License.
17-->
18<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent" >
21
22    <com.android.ex.photo.views.PhotoView
23        android:id="@+id/photo_view"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent" />
26
27    <FrameLayout
28        android:id="@+id/photo_preview"
29        android:layout_width="@dimen/photo_preview_size"
30        android:layout_height="@dimen/photo_preview_size"
31        android:layout_centerInParent="true" >
32
33        <ImageView
34            android:id="@+id/photo_preview_image"
35            android:layout_width="@dimen/photo_preview_size"
36            android:layout_height="@dimen/photo_preview_size"
37            android:layout_gravity="center"
38            android:scaleType="centerCrop"
39            android:src="@drawable/default_image"
40            android:visibility="gone" />
41
42        <ProgressBar
43            android:id="@+id/indeterminate_progress"
44            style="?android:attr/progressBarStyleHorizontal"
45            android:layout_width="@dimen/photo_preview_size"
46            android:layout_height="wrap_content"
47            android:layout_gravity="bottom"
48            android:indeterminate="true"
49            android:visibility="gone" />
50
51        <ProgressBar
52            android:id="@+id/determinate_progress"
53            style="?android:attr/progressBarStyleHorizontal"
54            android:layout_width="@dimen/photo_preview_size"
55            android:layout_height="wrap_content"
56            android:layout_gravity="bottom"
57            android:indeterminate="false"
58            android:visibility="gone" />
59    </FrameLayout>
60
61    <TextView
62        android:id="@+id/empty_text"
63        android:layout_width="wrap_content"
64        android:layout_height="wrap_content"
65        android:layout_below="@id/photo_preview"
66        android:layout_centerHorizontal="true"
67        android:layout_marginTop="8dip"
68        android:textColor="@android:color/white"
69        android:visibility="gone" />
70
71    <!-- retry button might use a background that is ICS+ so include it from the right layout -->
72    <include layout="@layout/photo_retry_button" />
73</RelativeLayout>
74