1 <?xml version=
"1.0" encoding=
"utf-8"?> 
   3   ownCloud Android client application
 
   5   Copyright (C) 
2012  Bartek Przybylski
 
   6   Copyright (C) 
2012-
2013 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 as published by
 
  10   the Free Software Foundation, either version 
2 of the License, or
 
  11   (at your option) any later version.
 
  13   This program is distributed in the hope that it will be useful,
 
  14   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
  15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
  16   GNU General Public License for more details.
 
  18   You should have received a copy of the GNU General Public License
 
  19   along with this program.  If not, see 
<http://www.gnu.org/licenses
/>.
 
  21 <ScrollView xmlns:
android=
"http://schemas.android.com/apk/res/android" 
  22         android:
id=
"@+id/fdScrollView" 
  23         android:
layout_width=
"fill_parent" 
  24         android:
layout_height=
"fill_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" 
 182                         <ProgressBar android:
id=
"@+id/fdProgressBar" 
 183                                         android:
layout_width=
"match_parent"  
 184                                         android:
layout_height=
"wrap_content" 
 185                                         android:
progressDrawable=
"@android:drawable/progress_horizontal" 
 186                                         android:
indeterminate=
"false"  
 187                                         android:
indeterminateOnly=
"false"  
 191                                         android:
layout_width=
"match_parent" 
 192                                         android:
layout_height=
"wrap_content" 
 193                                         android:
gravity=
"center_horizontal" 
 194                                         android:
layout_marginTop=
"12dp" 
 198                                                 android:
id=
"@+id/fdDownloadBtn" 
 199                                                 android:
layout_width=
"0dp" 
 200                                                 android:
layout_height=
"wrap_content" 
 201                                                 android:
layout_weight=
"1" 
 202                                                 android:
text=
"@string/filedetails_download" /> 
 205                                                 android:
id=
"@+id/fdOpenBtn" 
 206                                                 android:
layout_width=
"0dp" 
 207                                                 android:
layout_height=
"wrap_content" 
 208                                                 android:
layout_weight=
"1" 
 209                                                 android:
text=
"@string/filedetails_open" /> 
 214                                         android:
layout_width=
"match_parent" 
 215                                         android:
layout_height=
"wrap_content" 
 216                                         android:
gravity=
"center_horizontal" 
 217                                         android:
layout_marginTop=
"12dp" 
 221                                                 android:
id=
"@+id/fdRenameBtn" 
 222                                                 android:
layout_width=
"0dp" 
 223                                                 android:
layout_height=
"wrap_content" 
 224                                                 android:
layout_weight=
"1" 
 225                                                 android:
text=
"@string/common_rename" /> 
 228                                                 android:
id=
"@+id/fdRemoveBtn" 
 229                                                 android:
layout_width=
"0dp" 
 230                                                 android:
layout_height=
"wrap_content" 
 231                                                 android:
layout_weight=
"1" 
 232                                                 android:
text=
"@string/common_remove" />