1 <?xml version=
"1.0" encoding=
"utf-8"?> 
   3   ownCloud Android client application
 
   5   Copyright (C) 
2012  Bartek Przybylski
 
   6   This program is free software: you can redistribute it and/or modify
 
   7   it under the terms of the GNU General Public License as published by
 
   8   the Free Software Foundation, either version 
3 of the License, or
 
   9   (at your option) any later version.
 
  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.
 
  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
/>.
 
  19 <RelativeLayout xmlns:
android=
"http://schemas.android.com/apk/res/android" 
  20     android:
layout_width=
"fill_parent" 
  21     android:
layout_height=
"fill_parent" 
  22     android:
background=
"@color/owncloud_white" > 
  25         android:
id=
"@+id/fdScrollView" 
  26         android:
layout_width=
"fill_parent" 
  27         android:
layout_height=
"fill_parent" > 
  30             android:
layout_width=
"match_parent" 
  31             android:
layout_height=
"wrap_content" > 
  34                 android:
id=
"@+id/fdFileHeaderContainer" 
  35                 android:
layout_width=
"match_parent" 
  36                 android:
layout_height=
"wrap_content" 
  37                 android:
layout_marginLeft=
"16dp" 
  38                 android:
layout_marginTop=
"4dp" > 
  41                     android:
id=
"@+id/fdIcon" 
  42                     android:
layout_width=
"wrap_content" 
  43                     android:
layout_height=
"wrap_content" 
  44                     android:
src=
"@drawable/file" /> 
  47                     android:
id=
"@+id/fdFilename" 
  48                     android:
layout_width=
"wrap_content" 
  49                     android:
layout_height=
"wrap_content" 
  50                     android:
layout_centerVertical=
"true" 
  51                     android:
layout_toRightOf=
"@+id/fdIcon" 
  52                     android:
text=
"file.name" 
  53                     android:
textAppearance=
"?android:attr/textAppearanceLarge" /> 
  57                 android:
id=
"@+id/fdDetailsContainer" 
  58                 android:
layout_width=
"match_parent" 
  59                 android:
layout_height=
"wrap_content" 
  60                 android:
layout_below=
"@+id/fdFileHeaderContainer" > 
  63                     android:
id=
"@+id/fdLabelContainer" 
  64                     android:
layout_width=
"wrap_content" 
  65                     android:
layout_height=
"wrap_content" 
  66                     android:
layout_alignParentLeft=
"true" 
  67                     android:
layout_alignParentTop=
"true" 
  68                     android:
layout_marginLeft=
"16dp" > 
  71                         android:
id=
"@+id/fdTypeLabel" 
  72                         android:
layout_width=
"wrap_content" 
  73                         android:
layout_height=
"wrap_content" 
  74                         android:
layout_marginTop=
"24dp" 
  75                         android:
text=
"@string/filedetails_type" 
  76                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
  79                         android:
id=
"@+id/fdSizeLabel" 
  80                         android:
layout_width=
"wrap_content" 
  81                         android:
layout_height=
"wrap_content" 
  82                         android:
layout_below=
"@+id/fdTypeLabel" 
  83                         android:
layout_marginTop=
"12dp" 
  84                         android:
text=
"@string/filedetails_size" 
  85                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
  88                         android:
id=
"@+id/fdCreatedLabel" 
  89                         android:
layout_width=
"wrap_content" 
  90                         android:
layout_height=
"wrap_content" 
  91                         android:
layout_below=
"@+id/fdSizeLabel" 
  92                         android:
layout_marginTop=
"12dp" 
  93                         android:
text=
"@string/filedetails_created" 
  94                         android:
visibility=
"gone" 
  95                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
  98                         android:
id=
"@+id/fdModifiedLabel" 
  99                         android:
layout_width=
"wrap_content" 
 100                         android:
layout_height=
"wrap_content" 
 101                         android:
layout_below=
"@+id/fdCreatedLabel" 
 102                         android:
layout_marginTop=
"12dp" 
 103                         android:
text=
"@string/filedetails_modified" 
 104                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 108                     android:
id=
"@+id/fdValueContainer" 
 109                     android:
layout_width=
"wrap_content" 
 110                     android:
layout_height=
"wrap_content" 
 111                     android:
layout_alignParentTop=
"true" 
 112                     android:
layout_marginLeft=
"12dp" 
 113                     android:
layout_toRightOf=
"@+id/fdLabelContainer" > 
 116                         android:
id=
"@+id/fdType" 
 117                         android:
layout_width=
"wrap_content" 
 118                         android:
layout_height=
"wrap_content" 
 119                         android:
layout_marginTop=
"24dp" 
 120                         android:
text=
"JPG Image" 
 121                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 124                         android:
id=
"@+id/fdSize" 
 125                         android:
layout_width=
"wrap_content" 
 126                         android:
layout_height=
"wrap_content" 
 127                         android:
layout_below=
"@+id/fdType" 
 128                         android:
layout_marginTop=
"12dp" 
 129                         android:
text=
"389 KB" 
 130                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 133                         android:
id=
"@+id/fdCreated" 
 134                         android:
layout_width=
"wrap_content" 
 135                         android:
layout_height=
"wrap_content" 
 136                         android:
layout_below=
"@+id/fdSize" 
 137                         android:
layout_marginTop=
"12dp" 
 138                         android:
visibility=
"gone" 
 139                         android:
text=
"2012/05/18 12:23 PM" 
 140                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 143                         android:
id=
"@+id/fdModified" 
 144                         android:
layout_width=
"wrap_content" 
 145                         android:
layout_height=
"wrap_content" 
 146                         android:
layout_below=
"@+id/fdCreated" 
 147                         android:
layout_marginTop=
"12dp" 
 148                         android:
text=
"2012/05/19 02:56 PM" 
 149                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 155                 android:
id=
"@+id/fdPreviewAndDL" 
 156                 android:
layout_width=
"match_parent" 
 157                 android:
layout_height=
"wrap_content" 
 158                 android:
layout_below=
"@+id/fdDetailsContainer" 
 159                 android:
gravity=
"center_horizontal" > 
 162                     android:
id=
"@+id/fdKeepInSync" 
 163                     android:
layout_width=
"wrap_content" 
 164                     android:
layout_height=
"wrap_content" 
 165                     android:
layout_centerHorizontal=
"true" 
 166                     android:
text=
"@string/fd_keep_in_sync" /> 
 169                     android:
id=
"@+id/fdPreview" 
 170                     android:
layout_width=
"match_parent" 
 171                     android:
layout_height=
"match_parent" 
 172                     android:
layout_below=
"@id/fdKeepInSync" 
 173                     android:
layout_centerHorizontal=
"true" 
 174                     android:
layout_marginTop=
"16dp" 
 175                     android:
src=
"@drawable/owncloud_logo" /> 
 178                     android:
layout_width=
"match_parent" 
 179                     android:
layout_height=
"wrap_content" 
 180                     android:
layout_below=
"@id/fdPreview" 
 181                     android:
orientation=
"vertical" > 
 184                         android:
layout_width=
"match_parent" 
 185                         android:
layout_height=
"wrap_content" 
 186                         android:
gravity=
"center_horizontal" > 
 189                             android:
id=
"@+id/fdRemoveBtn" 
 190                             android:
layout_width=
"wrap_content" 
 191                             android:
layout_height=
"wrap_content" 
 192                             android:
layout_marginTop=
"12dp" 
 193                             android:
text=
"@string/common_remove" /> 
 196                             android:
id=
"@+id/fdOpenBtn" 
 197                             android:
layout_width=
"wrap_content" 
 198                             android:
layout_height=
"wrap_content" 
 199                             android:
layout_marginTop=
"12dp" 
 200                             android:
text=
"@string/filedetails_open" /> 
 205                         android:
layout_width=
"match_parent" 
 206                         android:
layout_height=
"wrap_content" 
 207                         android:
gravity=
"center_horizontal"> 
 210                             android:
id=
"@+id/fdDownloadBtn" 
 211                             android:
layout_width=
"wrap_content" 
 212                             android:
layout_height=
"wrap_content" 
 213                             android:
layout_marginTop=
"12dp" 
 214                             android:
text=
"@string/filedetails_download" /> 
 217                             android:
id=
"@+id/fdRenameBtn" 
 218                             android:
layout_width=
"wrap_content" 
 219                             android:
layout_height=
"wrap_content" 
 220                             android:
layout_marginTop=
"12dp" 
 221                             android:
text=
"@string/common_rename" /> 
 226                         android:
id=
"@+id/fdShareBtn" 
 227                         android:
layout_width=
"wrap_content" 
 228                         android:
layout_height=
"wrap_content" 
 229                         android:
layout_marginTop=
"12dp" 
 230                         android:
text=
"@string/common_share" />