816c465f9501919bebd1337a4b3b5d35e9d03bf4
[pub/Android/ownCloud.git] / oc_framework / sample_client / res / layout / main.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- ownCloud Android Library is available under MIT license
3 Copyright (C) 2014 ownCloud (http://www.owncloud.org/)
4
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 THE SOFTWARE.
23
24 -->
25
26 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
27 android:layout_width="match_parent"
28 android:layout_height="match_parent"
29 >
30
31 <Button
32 android:id="@+id/button_refresh"
33 style="@style/ButtonStyle"
34 android:layout_alignParentLeft="true"
35 android:layout_alignParentTop="true"
36 android:text="@string/refresh"
37 android:onClick="onClickHandler"
38 />
39
40 <ListView
41 android:id="@+id/list_view"
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
44 android:layout_below="@+id/button_refresh"
45 android:layout_above="@+id/button_upload"
46 android:layout_alignParentLeft="true"
47 android:layout_alignParentRight="true"
48 >
49 </ListView>
50
51 <Button
52 android:id="@+id/button_upload"
53 style="@style/ButtonStyle"
54 android:layout_alignParentLeft="true"
55 android:layout_above="@+id/frame"
56 android:text="@string/upload"
57 android:onClick="onClickHandler"
58 />
59
60 <TextView
61 android:id="@+id/upload_progress"
62 style="@style/ProgressStyle"
63 android:layout_below="@id/list_view"
64 android:layout_above="@id/frame"
65 android:layout_toRightOf="@id/button_upload"
66 android:layout_toLeftOf="@+id/button_delete_remote"
67 android:gravity="center"
68 android:textSize="14sp"
69 android:text="0%"
70 />
71
72 <Button
73 android:id="@id/button_delete_remote"
74 style="@style/ButtonStyle"
75 android:layout_alignParentRight="true"
76 android:layout_above="@id/frame"
77 android:text="@string/delete_remote_file"
78 android:onClick="onClickHandler"
79 />
80
81 <FrameLayout
82 android:id="@id/frame"
83 android:layout_width="match_parent"
84 android:layout_height="@dimen/frame_height"
85 android:layout_alignParentLeft="true"
86 android:layout_alignParentRight="true"
87 android:layout_above="@+id/button_download"
88 >
89 </FrameLayout>
90
91 <Button
92 android:id="@id/button_download"
93 style="@style/ButtonStyle"
94 android:layout_alignParentBottom="true"
95 android:layout_alignParentLeft="true"
96 android:text="@string/download"
97 android:onClick="onClickHandler"
98 />
99
100 <TextView
101 android:id="@+id/download_progress"
102 style="@style/ProgressStyle"
103 android:layout_below="@id/frame"
104 android:layout_alignParentBottom="true"
105 android:layout_toRightOf="@id/button_download"
106 android:layout_toLeftOf="@+id/button_delete_local"
107 android:gravity="center"
108 android:textSize="14sp"
109 android:text="0%"
110 />
111
112 <Button
113 android:id="@id/button_delete_local"
114 style="@style/ButtonStyle"
115 android:layout_alignParentBottom="true"
116 android:layout_alignParentRight="true"
117 android:text="@string/delete_local_file"
118 android:onClick="onClickHandler"
119 />
120
121 </RelativeLayout>
122