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" 
  24         android:
fillViewport=
"true" 
  28                 android:
layout_width=
"match_parent" 
  29                 android:
layout_height=
"wrap_content" > 
  32                         android:
id=
"@+id/fdFileHeaderContainer" 
  33                         android:
layout_width=
"match_parent" 
  34                         android:
layout_height=
"wrap_content" 
  35                         android:
layout_marginLeft=
"16dp" 
  36                         android:
layout_marginRight=
"16dp" 
  37                         android:
layout_marginTop=
"4dp" > 
  40                                 android:
id=
"@+id/fdIcon" 
  41                                 android:
layout_width=
"wrap_content" 
  42                                 android:
layout_height=
"wrap_content" 
  43                                 android:
src=
"@drawable/file" /> 
  46                             android:
id=
"@+id/fdFilename" 
  47                             android:
layout_width=
"wrap_content" 
  48                             android:
layout_height=
"wrap_content" 
  49                             android:
layout_centerVertical=
"true" 
  50                             android:
layout_toRightOf=
"@+id/fdIcon" 
  51                             android:
text=
"@string/placeholder_filename" 
  52                             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_marginLeft=
"16dp" 
  61                         android:
layout_marginRight=
"16dp" 
  62                         android:
layout_below=
"@id/fdFileHeaderContainer" > 
  65                                 android:
id=
"@+id/fdLabelContainer" 
  66                                 android:
layout_width=
"wrap_content" 
  67                                 android:
layout_height=
"wrap_content" 
  68                                 android:
layout_alignParentLeft=
"true" 
  69                                 android:
layout_alignParentTop=
"true" > 
  72                                         android:
id=
"@+id/fdTypeLabel" 
  73                                         android:
layout_width=
"wrap_content" 
  74                                         android:
layout_height=
"wrap_content" 
  75                                         android:
layout_marginTop=
"24dp" 
  76                                         android:
text=
"@string/filedetails_type" 
  77                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
  80                                         android:
id=
"@+id/fdSizeLabel" 
  81                                         android:
layout_width=
"wrap_content" 
  82                                         android:
layout_height=
"wrap_content" 
  83                                         android:
layout_below=
"@+id/fdTypeLabel" 
  84                                         android:
layout_marginTop=
"12dp" 
  85                                         android:
text=
"@string/filedetails_size" 
  86                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
  89                                         android:
id=
"@+id/fdCreatedLabel" 
  90                                         android:
layout_width=
"wrap_content" 
  91                                         android:
layout_height=
"wrap_content" 
  92                                         android:
layout_below=
"@+id/fdSizeLabel" 
  93                                         android:
layout_marginTop=
"12dp" 
  94                                         android:
text=
"@string/filedetails_created" 
  95                                         android:
visibility=
"gone" 
  96                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
  99                                         android:
id=
"@+id/fdModifiedLabel" 
 100                                         android:
layout_width=
"wrap_content" 
 101                                         android:
layout_height=
"wrap_content" 
 102                                         android:
layout_below=
"@+id/fdCreatedLabel" 
 103                                         android:
layout_marginTop=
"12dp" 
 104                                         android:
text=
"@string/filedetails_modified" 
 105                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 109                                 android:
id=
"@+id/fdValueContainer" 
 110                                 android:
layout_width=
"wrap_content" 
 111                                 android:
layout_height=
"wrap_content" 
 112                                 android:
layout_alignParentTop=
"true" 
 113                                 android:
layout_marginLeft=
"12dp" 
 114                                 android:
layout_toRightOf=
"@+id/fdLabelContainer" > 
 117                                         android:
id=
"@+id/fdType" 
 118                                         android:
layout_width=
"wrap_content" 
 119                                         android:
layout_height=
"wrap_content" 
 120                                         android:
layout_marginTop=
"24dp" 
 121                                         android:
text=
"@string/placeholder_filetype" 
 122                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 125                                         android:
id=
"@+id/fdSize" 
 126                                         android:
layout_width=
"wrap_content" 
 127                                         android:
layout_height=
"wrap_content" 
 128                                         android:
layout_below=
"@+id/fdType" 
 129                                         android:
layout_marginTop=
"12dp" 
 130                                         android:
text=
"@string/placeholder_filesize" 
 131                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 134                                         android:
id=
"@+id/fdCreated" 
 135                                         android:
layout_width=
"wrap_content" 
 136                                         android:
layout_height=
"wrap_content" 
 137                                         android:
layout_below=
"@+id/fdSize" 
 138                                         android:
layout_marginTop=
"12dp" 
 139                                         android:
visibility=
"gone" 
 140                                         android:
text=
"@string/placeholder_timestamp" 
 141                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 144                                         android:
id=
"@+id/fdModified" 
 145                                         android:
layout_width=
"wrap_content" 
 146                                         android:
layout_height=
"wrap_content" 
 147                                         android:
layout_below=
"@+id/fdCreated" 
 148                                         android:
layout_marginTop=
"12dp" 
 149                                         android:
text=
"@string/placeholder_timestamp" 
 150                                         android:
textAppearance=
"?android:attr/textAppearanceMedium" /> 
 157                         android:
id=
"@+id/fdProgressAndControl" 
 158                         android:
layout_width=
"match_parent" 
 159                         android:
layout_height=
"wrap_content" 
 160                         android:
layout_below=
"@+id/fdDetailsContainer" 
 161                         android:
gravity=
"center_horizontal"  
 162                         android:
layout_margin=
"16dp" 
 166                                 android:
id=
"@+id/fdFavorite" 
 167                                 android:
layout_width=
"wrap_content" 
 168                                 android:
layout_height=
"wrap_content" 
 169                                 android:
layout_centerHorizontal=
"true" 
 170                                 android:
text=
"@string/favorite" /> 
 173                                 android:
layout_width=
"match_parent" 
 174                                 android:
layout_height=
"wrap_content" 
 175                                 android:
layout_below=
"@id/fdFavorite" 
 176                                 android:
orientation=
"vertical" > 
 179                             android:
id=
"@+id/fdProgressText"  
 180                             android:
layout_width=
"match_parent" 
 181                                 android:
layout_height=
"wrap_content"  
 182                                 android:
text=
"@string/downloader_download_in_progress_ticker" 
 186                                 android:
id=
"@+id/fdProgressBlock" 
 187                                         android:
layout_width=
"match_parent" 
 188                                         android:
layout_height=
"wrap_content" 
 189                                         android:
gravity=
"center" 
 190                                         android:
layout_marginTop=
"12dp" 
 191                                         android:
layout_marginBottom=
"12dp" 
 192                                         android:
orientation=
"horizontal" 
 196                                     android:
id=
"@+id/fdProgressBar" 
 197                                                 android:
layout_width=
"0dp" 
 198                                                 android:
layout_height=
"wrap_content" 
 199                                                 android:
layout_weight=
"1" 
 200                         style=
"?android:attr/progressBarStyleHorizontal" 
 201                         android:
indeterminate=
"false" 
 202                                                 android:
indeterminateOnly=
"false"  
 206                                                 android:
id=
"@+id/fdCancelBtn" 
 207                                                 android:
layout_width=
"wrap_content" 
 208                                                 android:
layout_height=
"wrap_content" 
 209                                                 android:
layout_marginLeft=
"12dp" 
 210                                                 android:
src=
"@drawable/ic_cancel" 
 211                                                 android:
background=
"@android:color/transparent"