edit_share_layout.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ownCloud Android client application
  4. @author David A. Velasco
  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. xmlns:tools="http://schemas.android.com/tools"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. tools:context="com.owncloud.android.ui.fragment.EditShareFragment"
  21. android:id="@+id/shareScroll">
  22. <LinearLayout android:orientation="vertical"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content">
  25. <TextView
  26. android:id="@+id/editShareTitle"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:text="@string/share_with_edit_title"
  30. android:textAppearance="@style/TextAppearance.AppCompat.Title"
  31. android:padding="@dimen/standard_padding"
  32. android:singleLine="true"
  33. android:ellipsize="middle"
  34. />
  35. <View
  36. android:id="@+id/share_header_divider"
  37. android:layout_width="match_parent"
  38. android:layout_height="2dp"
  39. android:background="@color/owncloud_blue"
  40. />
  41. <LinearLayout
  42. android:orientation="vertical"
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:layout_marginLeft="@dimen/standard_margin"
  46. android:layout_marginRight="@dimen/standard_margin"
  47. android:layout_marginBottom="@dimen/standard_margin">
  48. <android.support.v7.widget.SwitchCompat
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:text="@string/share_privilege_can_edit"
  52. android:id="@+id/canEditSwitch"
  53. android:layout_gravity="start"
  54. android:layout_marginTop="@dimen/standard_half_margin"
  55. android:textColor="@color/color_accent"
  56. android:paddingLeft="0dp"
  57. style="?android:attr/listSeparatorTextViewStyle"
  58. />
  59. <CheckBox
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:id="@+id/canEditCreateCheckBox"
  63. android:text="@string/share_privilege_can_edit_create"
  64. android:visibility="gone"
  65. />
  66. <CheckBox
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:id="@+id/canEditChangeCheckBox"
  70. android:text="@string/share_privilege_can_edit_change"
  71. android:visibility="gone"
  72. />
  73. <CheckBox
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:id="@+id/canEditDeleteCheckBox"
  77. android:text="@string/share_privilege_can_edit_delete"
  78. android:visibility="gone"
  79. />
  80. <android.support.v7.widget.SwitchCompat
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:text="@string/share_privilege_can_share"
  84. android:id="@+id/canShareSwitch"
  85. android:layout_gravity="start"
  86. android:layout_marginTop="@dimen/standard_half_margin"
  87. android:textColor="@color/color_accent"
  88. android:paddingLeft="0dp"
  89. style="?android:attr/listSeparatorTextViewStyle"
  90. />
  91. </LinearLayout>
  92. </LinearLayout>
  93. </ScrollView>