file_details_sharing_fragment.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Nextcloud Android client application
  4. Copyright (C) 2018 Andy Scherzinger
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  7. License as published by the Free Software Foundation; either
  8. version 3 of the License, or any later version.
  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 AFFERO GENERAL PUBLIC LICENSE for more details.
  13. You should have received a copy of the GNU Affero General Public
  14. License 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. xmlns:app="http://schemas.android.com/apk/res-auto"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:layout_weight="1">
  21. <LinearLayout
  22. android:id="@+id/shareContainer"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:orientation="vertical"
  26. android:paddingTop="@dimen/standard_eigth_padding">
  27. <androidx.appcompat.widget.SearchView
  28. android:id="@+id/searchView"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_marginStart="@dimen/standard_eighth_margin"
  32. android:layout_marginLeft="@dimen/standard_eighth_margin"
  33. android:layout_marginEnd="@dimen/standard_margin"
  34. android:layout_marginRight="@dimen/standard_margin"
  35. android:hint="@string/share_search"
  36. style="@style/ownCloud.SearchView"/>
  37. <LinearLayout
  38. android:id="@+id/shared_with_you_container"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:layout_marginBottom="@dimen/standard_half_margin"
  42. android:orientation="horizontal"
  43. android:paddingLeft="@dimen/standard_padding"
  44. android:paddingTop="@dimen/standard_padding"
  45. android:paddingRight="@dimen/standard_padding">
  46. <ImageView
  47. android:id="@+id/shared_with_you_avatar"
  48. android:layout_width="40dp"
  49. android:layout_height="40dp"
  50. android:contentDescription="@string/avatar"
  51. android:src="@drawable/ic_user" />
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="vertical">
  56. <TextView
  57. android:id="@+id/shared_with_you_username"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:paddingLeft="@dimen/standard_padding"
  61. android:paddingTop="@dimen/standard_half_padding"
  62. android:paddingRight="@dimen/standard_padding"
  63. android:text="@string/shared_with_you_by"
  64. android:textSize="16sp"/>
  65. <TextView
  66. android:id="@+id/shared_with_you_note"
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:paddingLeft="@dimen/standard_padding"
  70. android:paddingTop="@dimen/standard_half_padding"
  71. android:paddingRight="@dimen/standard_padding"
  72. android:textSize="16sp"/>
  73. </LinearLayout>
  74. </LinearLayout>
  75. <LinearLayout
  76. android:id="@+id/share_by_link_container"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:layout_marginBottom="@dimen/standard_half_margin"
  80. android:orientation="horizontal"
  81. android:paddingLeft="@dimen/standard_padding"
  82. android:paddingTop="@dimen/standard_padding"
  83. android:paddingRight="@dimen/standard_padding">
  84. <com.google.android.flexbox.FlexboxLayout
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:layout_weight="1"
  88. android:orientation="horizontal"
  89. app:alignContent="stretch"
  90. app:alignItems="stretch"
  91. app:flexWrap="wrap">
  92. <androidx.appcompat.widget.AppCompatCheckBox
  93. android:id="@+id/share_by_link"
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:layout_gravity="center_vertical"
  97. android:text="@string/share_via_link_section_title" />
  98. <ImageView
  99. android:id="@+id/share_link_copy_icon"
  100. android:layout_width="wrap_content"
  101. android:layout_height="32dp"
  102. android:layout_gravity="start|center"
  103. android:layout_weight="1"
  104. android:contentDescription="@string/copy_link"
  105. android:paddingStart="@dimen/standard_half_margin"
  106. android:paddingLeft="@dimen/standard_half_margin"
  107. android:paddingTop="@dimen/standard_quarter_margin"
  108. android:paddingEnd="@dimen/standard_eighth_margin"
  109. android:paddingRight="@dimen/standard_eighth_margin"
  110. android:paddingBottom="@dimen/standard_quarter_margin"
  111. android:scaleType="fitStart"
  112. android:src="@drawable/ic_content_copy" />
  113. <androidx.appcompat.widget.AppCompatCheckBox
  114. android:id="@+id/share_by_link_allow_editing"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:layout_gravity="center_vertical"
  118. android:ellipsize="middle"
  119. android:text="@string/edit_permission_label"
  120. android:textSize="16sp" />
  121. </com.google.android.flexbox.FlexboxLayout>
  122. <ImageView
  123. android:id="@+id/overflow_menu_share_link"
  124. android:layout_width="wrap_content"
  125. android:layout_height="wrap_content"
  126. android:layout_gravity="end|center"
  127. android:layout_marginStart="@dimen/standard_half_margin"
  128. android:layout_marginLeft="@dimen/standard_half_margin"
  129. android:layout_weight="0"
  130. android:contentDescription="@string/overflow_menu"
  131. android:paddingStart="@dimen/standard_half_padding"
  132. android:paddingLeft="@dimen/standard_half_padding"
  133. android:paddingEnd="@dimen/zero"
  134. android:paddingRight="@dimen/zero"
  135. android:src="@drawable/ic_dots_vertical"/>
  136. </LinearLayout>
  137. <androidx.recyclerview.widget.RecyclerView
  138. android:id="@+id/shareUsersList"
  139. android:layout_width="match_parent"
  140. android:layout_height="0dp"
  141. android:layout_weight="1"
  142. android:divider="@drawable/divider"
  143. android:dividerHeight="1dp" />
  144. <TextView
  145. android:id="@+id/shareNoUsers"
  146. android:layout_width="match_parent"
  147. android:layout_height="wrap_content"
  148. android:paddingLeft="@dimen/standard_padding"
  149. android:paddingTop="@dimen/standard_half_padding"
  150. android:paddingRight="@dimen/standard_padding"
  151. android:text="@string/share_no_users"
  152. android:textSize="16sp" />
  153. <LinearLayout
  154. android:id="@+id/copy_internal_container"
  155. android:layout_width="match_parent"
  156. android:layout_height="wrap_content"
  157. android:layout_marginTop="@dimen/standard_margin"
  158. android:orientation="horizontal">
  159. <ImageView
  160. android:id="@+id/copy_internal_link_icon"
  161. android:layout_width="40dp"
  162. android:layout_height="40dp"
  163. android:layout_gravity="center_horizontal"
  164. android:contentDescription="@string/share"
  165. android:src="@drawable/ic_external"
  166. android:paddingTop="@dimen/copy_internal_link_padding"
  167. android:paddingRight="@dimen/copy_internal_link_padding"
  168. android:paddingEnd="@dimen/copy_internal_link_padding"
  169. android:paddingBottom="@dimen/copy_internal_link_padding"
  170. android:paddingLeft="@dimen/copy_internal_link_padding"
  171. android:paddingStart="@dimen/copy_internal_link_padding"
  172. android:layout_marginBottom="@dimen/standard_half_margin"
  173. android:layout_marginEnd="@dimen/standard_margin"
  174. android:layout_marginLeft="@dimen/standard_margin"
  175. android:layout_marginRight="@dimen/standard_margin"
  176. android:layout_marginStart="@dimen/standard_margin"
  177. android:layout_marginTop="@dimen/standard_half_margin"
  178. android:background="@drawable/round_bgnd" />
  179. <LinearLayout
  180. android:layout_width="match_parent"
  181. android:layout_height="wrap_content"
  182. android:orientation="vertical">
  183. <TextView
  184. android:id="@+id/copyInternalLink"
  185. android:layout_width="wrap_content"
  186. android:layout_height="wrap_content"
  187. android:textColor="@color/text_color"
  188. android:text="@string/copy_internal_link" />
  189. <TextView
  190. android:id="@+id/copyInternalLinkSubline"
  191. android:layout_width="wrap_content"
  192. android:layout_height="wrap_content"
  193. android:text="@string/copy_internal_link_subline" />
  194. </LinearLayout>
  195. </LinearLayout>
  196. </LinearLayout>
  197. </ScrollView>