file_details_share_user_item.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ownCloud Android client application
  4. Copyright (C) 2015 ownCloud Inc.
  5. Copyright (C) 2018 Andy Scherzinger
  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. <LinearLayout 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="wrap_content"
  20. android:orientation="horizontal"
  21. android:weightSum="1"
  22. tools:ignore="UseCompoundDrawables">
  23. <ImageView
  24. android:id="@+id/avatar"
  25. android:layout_width="@dimen/user_icon_size"
  26. android:layout_height="@dimen/user_icon_size"
  27. android:layout_gravity="center_vertical"
  28. android:layout_marginBottom="@dimen/standard_half_margin"
  29. android:layout_marginEnd="@dimen/standard_margin"
  30. android:layout_marginLeft="@dimen/standard_margin"
  31. android:layout_marginRight="@dimen/standard_margin"
  32. android:layout_marginStart="@dimen/standard_margin"
  33. android:layout_marginTop="@dimen/standard_half_margin"
  34. android:contentDescription="@string/user_icon"
  35. android:src="@drawable/ic_user" />
  36. <TextView
  37. android:id="@+id/name"
  38. android:layout_width="0dp"
  39. android:layout_height="match_parent"
  40. android:layout_marginEnd="@dimen/standard_quarter_margin"
  41. android:layout_marginRight="@dimen/standard_quarter_margin"
  42. android:layout_weight="1"
  43. android:ellipsize="end"
  44. android:gravity="center_vertical"
  45. android:singleLine="true"
  46. android:text="@string/username"
  47. android:textColor="@color/text_color"
  48. android:textSize="@dimen/file_details_username_text_size" />
  49. <androidx.appcompat.widget.AppCompatCheckBox
  50. android:id="@+id/allowEditing"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_gravity="center_vertical"
  54. android:textSize="16sp"
  55. android:text="@string/edit_permission_label" />
  56. <ImageView
  57. android:id="@+id/editShareButton"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_gravity="center_vertical"
  61. android:layout_marginLeft="@dimen/standard_half_margin"
  62. android:layout_marginStart="@dimen/standard_half_margin"
  63. android:layout_marginEnd="@dimen/standard_half_margin"
  64. android:layout_marginRight="@dimen/standard_half_margin"
  65. android:contentDescription="@string/overflow_menu"
  66. android:padding="@dimen/standard_half_padding"
  67. android:src="@drawable/ic_dots_vertical" />
  68. </LinearLayout>