OC-2459: Ask for pincode, when click on an instant upload notification
[pub/Android/ownCloud.git] / res / layout / file_download_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 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2,
8 as published by the Free Software Foundation.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 -->
18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 android:orientation="vertical"
22 android:layout_gravity="center"
23 android:gravity="center_vertical"
24 android:padding="20dp"
25 >
26
27 <TextView
28 android:id="@+id/progressText"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:text="@string/downloader_not_downloaded_yet"
32 android:layout_marginBottom="15dp"
33 />
34
35 <LinearLayout
36 android:id="@+id/fdProgressBlock"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:gravity="center"
40 android:layout_marginTop="12dp"
41 android:layout_marginBottom="15dp"
42 android:orientation="horizontal"
43 >
44
45 <ProgressBar android:id="@+id/progressBar"
46 android:layout_width="0dp"
47 android:layout_height="wrap_content"
48 android:layout_weight="1"
49 android:progressDrawable="@android:drawable/progress_horizontal"
50 android:indeterminate="false"
51 android:indeterminateOnly="false"
52
53 />
54
55 <ImageButton
56 android:id="@+id/cancelBtn"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_marginLeft="12dp"
60 android:src="@drawable/btn_cancel"
61 android:background="@android:color/transparent"
62 />
63
64 </LinearLayout>
65
66 <ImageView
67 android:id="@+id/error_image"
68 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:layout_margin="0dp"
71 android:layout_gravity="center_horizontal"
72 android:contentDescription="@string/downloader_download_failed_ticker"
73 android:src="@drawable/image_fail" />
74
75 <TextView
76 android:id="@+id/errorText"
77 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
79 android:layout_gravity="center_horizontal"
80 android:layout_margin="40dp"
81 android:text="@string/downloader_download_failed_ticker"
82 />
83
84 </LinearLayout>
85