folder_sync_settings_layout.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Nextcloud Android client application
  4. Copyright (C) 2016 Andy Scherzinger
  5. Copyright (C) 2016 Nextcloud.
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  8. License as published by the Free Software Foundation; either
  9. version 3 of the License, or any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  14. You should have received a copy of the GNU Affero General Public
  15. License along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <LinearLayout android:id="@+id/root"
  18. xmlns:android="http://schemas.android.com/apk/res/android"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:gravity="center"
  22. android:orientation="vertical"
  23. android:padding="@dimen/standard_padding">
  24. <LinearLayout
  25. android:id="@+id/top_title"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content">
  28. <LinearLayout
  29. android:layout_width="0dp"
  30. android:layout_height="wrap_content"
  31. android:layout_weight="1"
  32. android:paddingBottom="@dimen/standard_padding"
  33. android:paddingTop="@dimen/standard_padding"
  34. android:orientation="vertical">
  35. <TextView
  36. android:id="@+id/folder_sync_settings_title"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:text="@string/folder_sync_preferences"
  40. android:textAppearance="@style/TextAppearance.AppCompat.Title"/>
  41. <TextView
  42. android:id="@+id/folder_sync_settings_local_folder_path"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:ellipsize="middle"
  46. android:maxLines="2"
  47. android:text="@string/folder_sync_preferences_folder_path"
  48. android:textColor="?android:attr/textColorSecondary"/>
  49. </LinearLayout>
  50. <LinearLayout
  51. android:layout_width="wrap_content"
  52. android:layout_height="match_parent"
  53. android:gravity="end|top"
  54. android:orientation="vertical"
  55. android:paddingTop="@dimen/standard_padding"
  56. android:paddingLeft="@dimen/standard_padding">
  57. <android.support.v7.widget.SwitchCompat
  58. android:id="@+id/sync_enabled"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:background="@null"
  62. android:clickable="false"
  63. android:focusable="false"/>
  64. </LinearLayout>
  65. </LinearLayout>
  66. <ScrollView
  67. android:id="@+id/details_scroll"
  68. android:layout_width="match_parent"
  69. android:layout_height="0dp"
  70. android:layout_weight="1">
  71. <LinearLayout
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content"
  74. android:orientation="vertical">
  75. <LinearLayout
  76. android:id="@+id/remote_folder_container"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:baselineAligned="false"
  80. android:gravity="center_vertical"
  81. android:minHeight="?android:attr/listPreferredItemHeightSmall"
  82. android:orientation="vertical"
  83. android:paddingBottom="@dimen/standard_padding"
  84. android:paddingTop="@dimen/standard_padding">
  85. <TextView
  86. android:id="@+id/remote_folder_title"
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:maxLines="1"
  90. android:text="@string/prefs_folder_sync_remote_path_title"
  91. android:textAppearance="?attr/textAppearanceListItem"/>
  92. <TextView
  93. android:id="@+id/remote_folder_summary"
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:ellipsize="middle"
  97. android:maxLines="2"
  98. android:text="@string/placeholder_filename"
  99. android:textColor="?android:attr/textColorSecondary"/>
  100. </LinearLayout>
  101. <LinearLayout
  102. android:id="@+id/setting_instant_upload_on_wifi_container"
  103. android:layout_width="match_parent"
  104. android:layout_height="wrap_content"
  105. android:baselineAligned="false"
  106. android:clipToPadding="false"
  107. android:gravity="center_vertical"
  108. android:minHeight="?attr/listPreferredItemHeightSmall">
  109. <RelativeLayout
  110. android:layout_width="0dp"
  111. android:layout_height="wrap_content"
  112. android:layout_weight="1"
  113. android:paddingBottom="@dimen/standard_padding"
  114. android:paddingTop="@dimen/standard_padding">
  115. <TextView
  116. android:id="@+id/setting_instant_upload_on_wifi_label"
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:ellipsize="marquee"
  120. android:maxLines="1"
  121. android:text="@string/auto_upload_on_wifi"
  122. android:textAppearance="?attr/textAppearanceListItem"/>
  123. </RelativeLayout>
  124. <LinearLayout
  125. android:id="@+id/setting_instant_upload_on_wifi_frame"
  126. android:layout_width="wrap_content"
  127. android:layout_height="match_parent"
  128. android:gravity="end|center_vertical"
  129. android:orientation="vertical"
  130. android:paddingLeft="@dimen/standard_padding">
  131. <android.support.v7.widget.AppCompatCheckBox
  132. android:id="@+id/setting_instant_upload_on_wifi_checkbox"
  133. android:layout_width="wrap_content"
  134. android:layout_height="wrap_content"
  135. android:background="@null"
  136. android:clickable="false"
  137. android:focusable="false"/>
  138. </LinearLayout>
  139. </LinearLayout>
  140. <LinearLayout
  141. android:id="@+id/setting_instant_upload_on_charging_container"
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:baselineAligned="false"
  145. android:clipToPadding="false"
  146. android:gravity="center_vertical"
  147. android:minHeight="?attr/listPreferredItemHeightSmall">
  148. <RelativeLayout
  149. android:layout_width="0dp"
  150. android:layout_height="wrap_content"
  151. android:layout_weight="1"
  152. android:paddingBottom="@dimen/standard_padding"
  153. android:paddingTop="@dimen/standard_padding">
  154. <TextView
  155. android:id="@+id/setting_instant_upload_on_charging_label"
  156. android:layout_width="wrap_content"
  157. android:layout_height="wrap_content"
  158. android:ellipsize="marquee"
  159. android:maxLines="1"
  160. android:text="@string/instant_upload_on_charging"
  161. android:textAppearance="?attr/textAppearanceListItem"/>
  162. </RelativeLayout>
  163. <LinearLayout
  164. android:id="@+id/setting_instant_upload_on_charging_frame"
  165. android:layout_width="wrap_content"
  166. android:layout_height="match_parent"
  167. android:gravity="end|center_vertical"
  168. android:orientation="vertical"
  169. android:paddingLeft="@dimen/standard_padding">
  170. <android.support.v7.widget.AppCompatCheckBox
  171. android:id="@+id/setting_instant_upload_on_charging_checkbox"
  172. android:layout_width="wrap_content"
  173. android:layout_height="wrap_content"
  174. android:background="@null"
  175. android:clickable="false"
  176. android:focusable="false"/>
  177. </LinearLayout>
  178. </LinearLayout>
  179. <LinearLayout
  180. android:id="@+id/setting_instant_upload_path_use_subfolders_container"
  181. android:layout_width="match_parent"
  182. android:layout_height="wrap_content"
  183. android:baselineAligned="false"
  184. android:clipToPadding="false"
  185. android:gravity="center_vertical"
  186. android:minHeight="?attr/listPreferredItemHeightSmall">
  187. <RelativeLayout
  188. android:layout_width="0dp"
  189. android:layout_height="wrap_content"
  190. android:layout_weight="1"
  191. android:paddingBottom="@dimen/standard_padding"
  192. android:paddingTop="@dimen/standard_padding">
  193. <TextView
  194. android:id="@+id/setting_instant_upload_path_use_subfolders_label"
  195. android:layout_width="wrap_content"
  196. android:layout_height="wrap_content"
  197. android:ellipsize="marquee"
  198. android:maxLines="1"
  199. android:text="@string/prefs_instant_upload_path_use_subfolders_title"
  200. android:textAppearance="?attr/textAppearanceListItem"/>
  201. <TextView
  202. android:id="@+id/setting_instant_upload_path_use_subfolders_summary"
  203. android:layout_width="wrap_content"
  204. android:layout_height="wrap_content"
  205. android:layout_alignLeft="@id/setting_instant_upload_path_use_subfolders_label"
  206. android:layout_below="@id/setting_instant_upload_path_use_subfolders_label"
  207. android:ellipsize="end"
  208. android:maxLines="2"
  209. android:text="@string/prefs_instant_upload_path_use_subfolders_summary"
  210. android:textColor="?android:attr/textColorSecondary"/>
  211. </RelativeLayout>
  212. <!-- Preference should place its actual preference widget here. -->
  213. <LinearLayout
  214. android:id="@+id/setting_instant_upload_path_use_subfolders_frame"
  215. android:layout_width="wrap_content"
  216. android:layout_height="match_parent"
  217. android:gravity="end|center_vertical"
  218. android:orientation="vertical"
  219. android:paddingLeft="@dimen/standard_padding">
  220. <android.support.v7.widget.AppCompatCheckBox
  221. android:id="@+id/setting_instant_upload_path_use_subfolders_checkbox"
  222. android:layout_width="wrap_content"
  223. android:layout_height="wrap_content"
  224. android:background="@null"
  225. android:clickable="false"
  226. android:focusable="false"/>
  227. </LinearLayout>
  228. </LinearLayout>
  229. <LinearLayout
  230. android:id="@+id/setting_instant_behaviour_container"
  231. android:layout_width="match_parent"
  232. android:layout_height="wrap_content"
  233. android:baselineAligned="false"
  234. android:clipToPadding="false"
  235. android:gravity="center_vertical"
  236. android:minHeight="?attr/listPreferredItemHeightSmall"
  237. android:orientation="vertical"
  238. android:paddingBottom="@dimen/standard_padding"
  239. android:paddingTop="@dimen/standard_padding">
  240. <TextView
  241. android:id="@+id/setting_instant_behaviour_title"
  242. android:layout_width="wrap_content"
  243. android:layout_height="wrap_content"
  244. android:ellipsize="marquee"
  245. android:maxLines="1"
  246. android:text="@string/prefs_instant_behaviour_title"
  247. android:textAppearance="?attr/textAppearanceListItem"/>
  248. <TextView
  249. android:id="@+id/setting_instant_behaviour_summary"
  250. android:layout_width="wrap_content"
  251. android:layout_height="wrap_content"
  252. android:ellipsize="end"
  253. android:maxLines="1"
  254. android:text="@string/placeholder_filename"
  255. android:textColor="?android:attr/textColorSecondary"/>
  256. </LinearLayout>
  257. </LinearLayout>
  258. </ScrollView>
  259. <LinearLayout
  260. android:layout_width="match_parent"
  261. android:layout_height="wrap_content"
  262. android:gravity="right">
  263. <android.support.v7.widget.AppCompatButton
  264. android:id="@+id/cancel"
  265. style="@style/Button.Borderless"
  266. android:layout_width="wrap_content"
  267. android:layout_height="wrap_content"
  268. android:text="@string/common_cancel"/>
  269. <android.support.v7.widget.AppCompatButton
  270. android:id="@+id/save"
  271. style="@style/Button.Borderless"
  272. android:layout_width="wrap_content"
  273. android:layout_height="wrap_content"
  274. android:text="@string/common_save"/>
  275. </LinearLayout>
  276. </LinearLayout>