1 <?xml version=
"1.0" encoding=
"utf-8"?> 
   3   ownCloud Android client application
 
   5   Copyright (C) 
2012  Bartek Przybylski
 
   6   Copyright (C) 
2015 ownCloud Inc.
 
   8   This program is free software: you can redistribute it and/or modify
 
   9   it under the terms of the GNU General Public License version 
2,
 
  10   as published by the Free Software Foundation.
 
  12   This program is distributed in the hope that it will be useful,
 
  13   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
  14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
  15   GNU General Public License for more details.
 
  17   You should have received a copy of the GNU General Public License
 
  18   along with this program.  If not, see 
<http://www.gnu.org/licenses
/>.
 
  20 <ScrollView xmlns:
android=
"http://schemas.android.com/apk/res/android" 
  21         android:
id=
"@+id/fdScrollView" 
  22         android:
layout_width=
"match_parent" 
  23         android:
layout_height=
"match_parent" 
  27                 android:
layout_width=
"match_parent" 
  28                 android:
layout_height=
"wrap_content" > 
  31                         android:
id=
"@+id/fdFileHeaderContainer" 
  32                         android:
layout_width=
"match_parent" 
  33                         android:
layout_height=
"wrap_content" 
  34                         android:
layout_marginLeft=
"16dp" 
  35                         android:
layout_marginTop=
"4dp" > 
  38                                 android:
id=
"@+id/fdIcon" 
  39                                 android:
layout_width=
"wrap_content" 
  40                                 android:
layout_height=
"wrap_content" 
  41                                 android:
src=
"@drawable/file" /> 
  44                             android:
id=
"@+id/fdFilename" 
  45                             android:
layout_width=
"wrap_content" 
  46                             android:
layout_height=
"wrap_content" 
  47                             android:
layout_centerVertical=
"true" 
  48                             android:
layout_toRightOf=
"@+id/fdIcon" 
  49                             android:
text=
"@string/placeholder_filename" 
  50                             android:
textAppearance=
"?android:attr/textAppearanceLarge" /> 
  55                         android:
id=
"@+id/fdDetailsContainer" 
  56                         android:
layout_width=
"match_parent" 
  57                         android:
layout_height=
"wrap_content" 
  58                         android:
layout_below=
"@id/fdFileHeaderContainer" > 
  61                                 android:
id=
"@+id/fdLabelContainer" 
  62                                 android:
layout_width=
"wrap_content" 
  63                                 android:
layout_height=
"wrap_content" 
  64                                 android:
layout_alignParentLeft=
"true" 
  65                                 android:
layout_alignParentTop=
"true" 
  66                                 android:
layout_marginLeft=
"16dp" > 
  69                                         android:
id=
"@+id/fdTypeLabel" 
  70                                         android:
layout_width=
"wrap_content" 
  71                                         android:
layout_height=
"wrap_content" 
  72                                         android:
layout_marginTop=
"24dp" 
  73                                         android:
text=
"@string/filedetails_type" 
  74                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
  77                                         android:
id=
"@+id/fdSizeLabel" 
  78                                         android:
layout_width=
"wrap_content" 
  79                                         android:
layout_height=
"wrap_content" 
  80                                         android:
layout_below=
"@+id/fdTypeLabel" 
  81                                         android:
layout_marginTop=
"12dp" 
  82                                         android:
text=
"@string/filedetails_size" 
  83                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
  86                                         android:
id=
"@+id/fdCreatedLabel" 
  87                                         android:
layout_width=
"wrap_content" 
  88                                         android:
layout_height=
"wrap_content" 
  89                                         android:
layout_below=
"@+id/fdSizeLabel" 
  90                                         android:
layout_marginTop=
"12dp" 
  91                                         android:
text=
"@string/filedetails_created" 
  92                                         android:
visibility=
"gone" 
  93                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
  96                                         android:
id=
"@+id/fdModifiedLabel" 
  97                                         android:
layout_width=
"wrap_content" 
  98                                         android:
layout_height=
"wrap_content" 
  99                                         android:
layout_below=
"@+id/fdCreatedLabel" 
 100                                         android:
layout_marginTop=
"12dp" 
 101                                         android:
text=
"@string/filedetails_modified" 
 102                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 106                                 android:
id=
"@+id/fdValueContainer" 
 107                                 android:
layout_width=
"wrap_content" 
 108                                 android:
layout_height=
"wrap_content" 
 109                                 android:
layout_alignParentTop=
"true" 
 110                                 android:
layout_marginLeft=
"12dp" 
 111                                 android:
layout_toRightOf=
"@+id/fdLabelContainer" > 
 114                                         android:
id=
"@+id/fdType" 
 115                                         android:
layout_width=
"wrap_content" 
 116                                         android:
layout_height=
"wrap_content" 
 117                                         android:
layout_marginTop=
"24dp" 
 118                                         android:
text=
"@string/placeholder_filetype" 
 119                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 122                                         android:
id=
"@+id/fdSize" 
 123                                         android:
layout_width=
"wrap_content" 
 124                                         android:
layout_height=
"wrap_content" 
 125                                         android:
layout_below=
"@+id/fdType" 
 126                                         android:
layout_marginTop=
"12dp" 
 127                                         android:
text=
"@string/placeholder_filesize" 
 128                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 131                                         android:
id=
"@+id/fdCreated" 
 132                                         android:
layout_width=
"wrap_content" 
 133                                         android:
layout_height=
"wrap_content" 
 134                                         android:
layout_below=
"@+id/fdSize" 
 135                                         android:
layout_marginTop=
"12dp" 
 136                                         android:
visibility=
"gone" 
 137                                         android:
text=
"@string/placeholder_timestamp" 
 138                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 141                                         android:
id=
"@+id/fdModified" 
 142                                         android:
layout_width=
"wrap_content" 
 143                                         android:
layout_height=
"wrap_content" 
 144                                         android:
layout_below=
"@+id/fdCreated" 
 145                                         android:
layout_marginTop=
"12dp" 
 146                                         android:
text=
"@string/placeholder_timestamp" 
 147                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 154                         android:
id=
"@+id/fdProgressAndControl" 
 155                         android:
layout_width=
"match_parent" 
 156                         android:
layout_height=
"wrap_content" 
 157                         android:
layout_below=
"@+id/fdDetailsContainer" 
 158                         android:
gravity=
"center_horizontal"  
 159                         android:
layout_margin=
"16dp" 
 163                                 android:
id=
"@+id/fdKeepInSync" 
 164                                 android:
layout_width=
"wrap_content" 
 165                                 android:
layout_height=
"wrap_content" 
 166                                 android:
layout_centerHorizontal=
"true" 
 167                                 android:
text=
"@string/fd_keep_in_sync" /> 
 170                                 android:
layout_width=
"match_parent" 
 171                                 android:
layout_height=
"wrap_content" 
 172                                 android:
layout_below=
"@id/fdKeepInSync" 
 173                                 android:
orientation=
"vertical" > 
 176                             android:
id=
"@+id/fdProgressText"  
 177                             android:
layout_width=
"match_parent" 
 178                                 android:
layout_height=
"wrap_content"  
 179                                 android:
text=
"@string/downloader_download_in_progress_ticker" 
 183                                 android:
id=
"@+id/fdProgressBlock" 
 184                                         android:
layout_width=
"match_parent" 
 185                                         android:
layout_height=
"wrap_content" 
 186                                         android:
gravity=
"center" 
 187                                         android:
layout_marginTop=
"12dp" 
 188                                         android:
layout_marginBottom=
"12dp" 
 189                                         android:
orientation=
"horizontal" 
 193                                     android:
id=
"@+id/fdProgressBar" 
 194                                                 android:
layout_width=
"0dp" 
 195                                                 android:
layout_height=
"wrap_content" 
 196                                                 android:
layout_weight=
"1" 
 197                                                 android:
progressDrawable=
"@android:drawable/progress_horizontal" 
 198                                                 android:
indeterminate=
"false"  
 199                                                 android:
indeterminateOnly=
"false"  
 203                                                 android:
id=
"@+id/fdCancelBtn" 
 204                                                 android:
layout_width=
"wrap_content" 
 205                                                 android:
layout_height=
"wrap_content" 
 206                                                 android:
layout_marginLeft=
"12dp" 
 207                                                 android:
src=
"@drawable/btn_cancel" 
 208                                                 android:
background=
"@android:color/transparent"