file_details_fragment.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2012 Bartek Przybylski
  5. Copyright (C) 2012-2013 ownCloud Inc.
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License version 2,
  8. as published by the Free Software Foundation.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  17. android:id="@+id/fdScrollView"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. >
  21. <RelativeLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content" >
  24. <RelativeLayout
  25. android:id="@+id/fdFileHeaderContainer"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:layout_marginLeft="16dp"
  29. android:layout_marginTop="4dp" >
  30. <ImageView
  31. android:id="@+id/fdIcon"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:src="@drawable/file" />
  35. <TextView
  36. android:id="@+id/fdFilename"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_centerVertical="true"
  40. android:layout_toRightOf="@+id/fdIcon"
  41. android:text="@string/placeholder_filename"
  42. android:textAppearance="?android:attr/textAppearanceLarge" />
  43. </RelativeLayout>
  44. <RelativeLayout
  45. android:id="@+id/fdDetailsContainer"
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:layout_below="@id/fdFileHeaderContainer" >
  49. <RelativeLayout
  50. android:id="@+id/fdLabelContainer"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_alignParentLeft="true"
  54. android:layout_alignParentTop="true"
  55. android:layout_marginLeft="16dp" >
  56. <TextView
  57. android:id="@+id/fdTypeLabel"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_marginTop="24dp"
  61. android:text="@string/filedetails_type"
  62. android:textAppearance="?android:attr/textAppearanceMedium" />
  63. <TextView
  64. android:id="@+id/fdSizeLabel"
  65. android:layout_width="wrap_content"
  66. android:layout_height="wrap_content"
  67. android:layout_below="@+id/fdTypeLabel"
  68. android:layout_marginTop="12dp"
  69. android:text="@string/filedetails_size"
  70. android:textAppearance="?android:attr/textAppearanceMedium" />
  71. <TextView
  72. android:id="@+id/fdCreatedLabel"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:layout_below="@+id/fdSizeLabel"
  76. android:layout_marginTop="12dp"
  77. android:text="@string/filedetails_created"
  78. android:visibility="gone"
  79. android:textAppearance="?android:attr/textAppearanceMedium" />
  80. <TextView
  81. android:id="@+id/fdModifiedLabel"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_below="@+id/fdCreatedLabel"
  85. android:layout_marginTop="12dp"
  86. android:text="@string/filedetails_modified"
  87. android:textAppearance="?android:attr/textAppearanceMedium" />
  88. </RelativeLayout>
  89. <RelativeLayout
  90. android:id="@+id/fdValueContainer"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_alignParentTop="true"
  94. android:layout_marginLeft="12dp"
  95. android:layout_toRightOf="@+id/fdLabelContainer" >
  96. <TextView
  97. android:id="@+id/fdType"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:layout_marginTop="24dp"
  101. android:text="@string/placeholder_filetype"
  102. android:textAppearance="?android:attr/textAppearanceMedium" />
  103. <TextView
  104. android:id="@+id/fdSize"
  105. android:layout_width="wrap_content"
  106. android:layout_height="wrap_content"
  107. android:layout_below="@+id/fdType"
  108. android:layout_marginTop="12dp"
  109. android:text="@string/placeholder_filesize"
  110. android:textAppearance="?android:attr/textAppearanceMedium" />
  111. <TextView
  112. android:id="@+id/fdCreated"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:layout_below="@+id/fdSize"
  116. android:layout_marginTop="12dp"
  117. android:visibility="gone"
  118. android:text="@string/placeholder_timestamp"
  119. android:textAppearance="?android:attr/textAppearanceMedium" />
  120. <TextView
  121. android:id="@+id/fdModified"
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_below="@+id/fdCreated"
  125. android:layout_marginTop="12dp"
  126. android:text="@string/placeholder_timestamp"
  127. android:textAppearance="?android:attr/textAppearanceMedium" />
  128. </RelativeLayout>
  129. </RelativeLayout>
  130. <RelativeLayout
  131. android:id="@+id/fdProgressAndControl"
  132. android:layout_width="match_parent"
  133. android:layout_height="wrap_content"
  134. android:layout_below="@+id/fdDetailsContainer"
  135. android:gravity="center_horizontal"
  136. android:layout_margin="16dp"
  137. >
  138. <CheckBox
  139. android:id="@+id/fdKeepInSync"
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content"
  142. android:layout_centerHorizontal="true"
  143. android:text="@string/fd_keep_in_sync" />
  144. <LinearLayout
  145. android:layout_width="match_parent"
  146. android:layout_height="wrap_content"
  147. android:layout_below="@id/fdKeepInSync"
  148. android:orientation="vertical" >
  149. <TextView
  150. android:id="@+id/fdProgressText"
  151. android:layout_width="match_parent"
  152. android:layout_height="wrap_content"
  153. android:text="@string/downloader_download_in_progress_ticker"
  154. />
  155. <LinearLayout
  156. android:id="@+id/fdProgressBlock"
  157. android:layout_width="match_parent"
  158. android:layout_height="wrap_content"
  159. android:gravity="center"
  160. android:layout_marginTop="12dp"
  161. android:layout_marginBottom="12dp"
  162. android:orientation="horizontal"
  163. >
  164. <ProgressBar
  165. android:id="@+id/fdProgressBar"
  166. android:layout_width="0dp"
  167. android:layout_height="wrap_content"
  168. android:layout_weight="1"
  169. android:progressDrawable="@android:drawable/progress_horizontal"
  170. android:indeterminate="false"
  171. android:indeterminateOnly="false"
  172. />
  173. <ImageButton
  174. android:id="@+id/fdCancelBtn"
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content"
  177. android:layout_marginLeft="12dp"
  178. android:src="@drawable/btn_cancel"
  179. android:background="@android:color/transparent"
  180. />
  181. </LinearLayout>
  182. </LinearLayout>
  183. </RelativeLayout>
  184. </RelativeLayout>
  185. </ScrollView>