Merge pull request #1048 from owncloud/shareWithYou_icon_in_fileList
[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) 2015 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:id="@+id/fileDownloadLL"
20 android:layout_width="match_parent"
21 android:layout_height="match_parent"
22 android:orientation="vertical"
23 android:layout_gravity="center"
24 android:gravity="center_vertical"
25 android:padding="20dp"
26 >
27
28 <TextView
29 android:id="@+id/progressText"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:text="@string/downloader_not_downloaded_yet"
33 android:layout_marginBottom="15dp"
34 />
35
36 <LinearLayout
37 android:id="@+id/fdProgressBlock"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:gravity="center"
41 android:layout_marginTop="12dp"
42 android:layout_marginBottom="15dp"
43 android:orientation="horizontal"
44 >
45
46 <ProgressBar android:id="@+id/progressBar"
47 android:layout_width="0dp"
48 android:layout_height="wrap_content"
49 android:layout_weight="1"
50 android:progressDrawable="@android:drawable/progress_horizontal"
51 android:indeterminate="false"
52 android:indeterminateOnly="false"
53
54 />
55
56 <ImageButton
57 android:id="@+id/cancelBtn"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:layout_marginLeft="12dp"
61 android:src="@drawable/btn_cancel"
62 android:background="@android:color/transparent"
63 />
64
65 </LinearLayout>
66
67 <ImageView
68 android:id="@+id/error_image"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:layout_margin="0dp"
72 android:layout_gravity="center_horizontal"
73 android:contentDescription="@string/downloader_download_failed_ticker"
74 android:src="@drawable/image_fail" />
75
76 <TextView
77 android:id="@+id/errorText"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:layout_gravity="center_horizontal"
81 android:layout_margin="40dp"
82 android:text="@string/downloader_download_failed_ticker"
83 />
84
85 </LinearLayout>
86