file_details_fragment.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2012 Bartek Przybylski
  5. Copyright (C) 2015 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. android:fillViewport="true"
  21. >
  22. <RelativeLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content" >
  25. <RelativeLayout
  26. android:id="@+id/fdFileHeaderContainer"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_marginLeft="@dimen/standard_margin"
  30. android:layout_marginRight="@dimen/standard_margin"
  31. android:layout_marginTop="@dimen/standard_margin">
  32. <ImageView
  33. android:id="@+id/fdIcon"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:src="@drawable/file" />
  37. <TextView
  38. android:id="@+id/fdFilename"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:layout_centerVertical="true"
  42. android:layout_toRightOf="@+id/fdIcon"
  43. android:text="@string/placeholder_filename"
  44. android:textAppearance="?android:attr/textAppearanceLarge" />
  45. </RelativeLayout>
  46. <RelativeLayout
  47. android:id="@+id/fdDetailsContainer"
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:layout_marginLeft="@dimen/standard_margin"
  51. android:layout_marginRight="@dimen/standard_margin"
  52. android:layout_marginTop="@dimen/standard_margin"
  53. android:layout_below="@id/fdFileHeaderContainer" >
  54. <RelativeLayout
  55. android:id="@+id/fdLabelContainer"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:layout_alignParentLeft="true"
  59. android:layout_alignParentTop="true" >
  60. <TextView
  61. android:id="@+id/fdTypeLabel"
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:text="@string/filedetails_type"
  65. android:textAppearance="?android:attr/textAppearanceMedium" />
  66. <TextView
  67. android:id="@+id/fdSizeLabel"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_below="@+id/fdTypeLabel"
  71. android:layout_marginTop="12dp"
  72. android:text="@string/filedetails_size"
  73. android:textAppearance="?android:attr/textAppearanceMedium" />
  74. <TextView
  75. android:id="@+id/fdCreatedLabel"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:layout_below="@+id/fdSizeLabel"
  79. android:layout_marginTop="12dp"
  80. android:text="@string/filedetails_created"
  81. android:visibility="gone"
  82. android:textAppearance="?android:attr/textAppearanceMedium" />
  83. <TextView
  84. android:id="@+id/fdModifiedLabel"
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:layout_below="@+id/fdCreatedLabel"
  88. android:layout_marginTop="12dp"
  89. android:text="@string/filedetails_modified"
  90. android:textAppearance="?android:attr/textAppearanceMedium" />
  91. </RelativeLayout>
  92. <RelativeLayout
  93. android:id="@+id/fdValueContainer"
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:layout_alignParentTop="true"
  97. android:layout_marginLeft="@dimen/standard_margin"
  98. android:layout_toRightOf="@+id/fdLabelContainer" >
  99. <TextView
  100. android:id="@+id/fdType"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:text="@string/placeholder_filetype"
  104. android:textAppearance="?android:attr/textAppearanceMedium" />
  105. <TextView
  106. android:id="@+id/fdSize"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:layout_below="@+id/fdType"
  110. android:layout_marginTop="12dp"
  111. android:text="@string/placeholder_filesize"
  112. android:textAppearance="?android:attr/textAppearanceMedium" />
  113. <TextView
  114. android:id="@+id/fdCreated"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:layout_below="@+id/fdSize"
  118. android:layout_marginTop="12dp"
  119. android:visibility="gone"
  120. android:text="@string/placeholder_timestamp"
  121. android:textAppearance="?android:attr/textAppearanceMedium" />
  122. <TextView
  123. android:id="@+id/fdModified"
  124. android:layout_width="wrap_content"
  125. android:layout_height="wrap_content"
  126. android:layout_below="@+id/fdCreated"
  127. android:layout_marginTop="12dp"
  128. android:text="@string/placeholder_timestamp"
  129. android:textAppearance="?android:attr/textAppearanceMedium" />
  130. </RelativeLayout>
  131. </RelativeLayout>
  132. <RelativeLayout
  133. android:id="@+id/fdProgressAndControl"
  134. android:layout_width="match_parent"
  135. android:layout_height="wrap_content"
  136. android:layout_below="@+id/fdDetailsContainer"
  137. android:gravity="center_horizontal"
  138. android:layout_margin="@dimen/standard_margin"
  139. >
  140. <android.support.v7.widget.AppCompatCheckBox
  141. android:id="@+id/fdFavorite"
  142. android:layout_width="wrap_content"
  143. android:layout_height="wrap_content"
  144. android:layout_centerHorizontal="true"
  145. android:text="@string/favorite"
  146. android:checked="false" />
  147. <LinearLayout
  148. android:layout_width="match_parent"
  149. android:layout_height="wrap_content"
  150. android:layout_below="@id/fdFavorite"
  151. android:orientation="vertical" >
  152. <TextView
  153. android:id="@+id/fdProgressText"
  154. android:layout_width="match_parent"
  155. android:layout_height="wrap_content"
  156. android:text="@string/downloader_download_in_progress_ticker"
  157. />
  158. <LinearLayout
  159. android:id="@+id/fdProgressBlock"
  160. android:layout_width="match_parent"
  161. android:layout_height="wrap_content"
  162. android:gravity="center"
  163. android:layout_marginTop="12dp"
  164. android:layout_marginBottom="12dp"
  165. android:orientation="horizontal"
  166. >
  167. <ProgressBar
  168. android:id="@+id/fdProgressBar"
  169. android:layout_width="0dp"
  170. android:layout_height="wrap_content"
  171. android:layout_weight="1"
  172. style="?android:attr/progressBarStyleHorizontal"
  173. android:indeterminate="false"
  174. android:indeterminateOnly="false"
  175. />
  176. <ImageButton
  177. android:id="@+id/fdCancelBtn"
  178. android:layout_width="wrap_content"
  179. android:layout_height="wrap_content"
  180. android:layout_marginLeft="12dp"
  181. android:src="@drawable/ic_cancel"
  182. android:background="@android:color/transparent"
  183. />
  184. </LinearLayout>
  185. </LinearLayout>
  186. </RelativeLayout>
  187. </RelativeLayout>
  188. </ScrollView>