Merge pull request #453 from owncloud/improve_action_bar_pr_392_with_develop
[pub/Android/ownCloud.git] / res / layout / preview_image_fragment.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012-2013 ownCloud Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2,
9 as published by the Free Software Foundation.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 -->
20
21 <!--
22 ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
23 android:id="@+id/fdScrollView"
24 android:layout_width="fill_parent"
25 android:layout_height="fill_parent"
26 android:background="@color/background_color"
27 android:gravity="center_horizontal"
28 -->
29 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
30 xmlns:tools="http://schemas.android.com/tools"
31 android:id="@+id/top"
32 android:layout_width="fill_parent"
33 android:layout_height="fill_parent"
34 android:background="#000000"
35 tools:context=".ui.fragment.PreviewImageFragment" >
36
37 <ProgressBar
38 android:id="@+id/progressWheel"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:indeterminate="true"
42 android:indeterminateOnly="true"
43 android:layout_centerInParent="true"
44 />
45
46 <ImageView
47 android:id="@+id/image"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_margin="0dp"
51 android:layout_centerInParent="true"
52 android:contentDescription="@string/preview_image_description"
53 android:src="@drawable/image_fail" />
54
55 <TextView
56 android:id="@+id/message"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_centerHorizontal="true"
60 android:layout_below="@id/image"
61 android:layout_margin="40dp"
62 android:text="@string/placeholder_sentence"
63 />
64
65 </RelativeLayout>