|
25 | 25 | tools:context=".presentation.spaces.members.SpaceMembersActivity"> |
26 | 26 |
|
27 | 27 | <LinearLayout |
| 28 | + android:id="@+id/members_section" |
28 | 29 | android:layout_width="match_parent" |
29 | 30 | android:layout_height="wrap_content" |
30 | 31 | android:orientation="vertical"> |
31 | 32 |
|
32 | 33 | <androidx.constraintlayout.widget.ConstraintLayout |
33 | | - android:id="@+id/item_header_container" |
34 | 34 | android:layout_width="match_parent" |
35 | | - android:layout_height="wrap_content" |
36 | | - android:padding="@dimen/standard_padding"> |
37 | | - |
38 | | - <ImageView |
39 | | - android:id="@+id/item_icon" |
40 | | - android:layout_width="50dp" |
41 | | - android:layout_height="50dp" |
42 | | - android:layout_gravity="center_vertical" |
43 | | - android:src="@drawable/ic_menu_space" |
44 | | - app:layout_constraintStart_toStartOf="parent" |
45 | | - app:layout_constraintTop_toTopOf="parent" |
46 | | - app:layout_constraintBottom_toBottomOf="parent"/> |
| 35 | + android:layout_height="match_parent" |
| 36 | + android:background="@color/actionbar_start_color"> |
47 | 37 |
|
48 | 38 | <TextView |
49 | | - android:id="@+id/item_name" |
| 39 | + android:id="@+id/members_title" |
50 | 40 | android:layout_width="wrap_content" |
51 | | - android:layout_height="wrap_content" |
52 | | - android:layout_marginEnd="@dimen/standard_half_margin" |
| 41 | + android:layout_height="50dp" |
| 42 | + android:layout_centerVertical="true" |
| 43 | + android:gravity="center" |
| 44 | + android:text="@string/space_members" |
53 | 45 | android:layout_marginStart="@dimen/standard_half_margin" |
54 | | - android:ellipsize="middle" |
55 | | - android:singleLine="true" |
56 | | - android:text="@string/placeholder_filename" |
57 | | - android:textColor="@color/black" |
58 | | - android:textSize="16sp" |
59 | | - app:layout_constraintStart_toEndOf="@id/item_icon" |
| 46 | + android:textAllCaps="true" |
| 47 | + android:textColor="@color/white" |
| 48 | + android:textStyle="bold" |
| 49 | + android:accessibilityHeading="true" |
| 50 | + app:layout_constraintStart_toStartOf="parent" |
60 | 51 | app:layout_constraintTop_toTopOf="parent"/> |
61 | 52 |
|
62 | | - <TextView |
63 | | - android:id="@+id/item_size" |
64 | | - android:layout_width="wrap_content" |
65 | | - android:layout_height="wrap_content" |
66 | | - android:layout_marginStart="@dimen/standard_half_margin" |
67 | | - android:text="@string/placeholder_filesize" |
68 | | - android:textColor="@color/list_item_lastmod_and_filesize_text" |
69 | | - android:textSize="14sp" |
70 | | - app:layout_constraintStart_toEndOf="@id/item_icon" |
71 | | - app:layout_constraintTop_toBottomOf="@+id/item_name"/> |
| 53 | + <ImageButton |
| 54 | + android:id="@+id/add_member_button" |
| 55 | + android:layout_width="48dp" |
| 56 | + android:layout_height="48dp" |
| 57 | + android:padding="@dimen/standard_padding" |
| 58 | + android:background="@color/transparent" |
| 59 | + android:src="@drawable/ic_add" |
| 60 | + android:contentDescription="@string/content_description_add_member" |
| 61 | + android:visibility="gone" |
| 62 | + android:focusable="true" |
| 63 | + android:clickable="true" |
| 64 | + app:layout_constraintEnd_toEndOf="parent" |
| 65 | + app:layout_constraintTop_toTopOf="parent" |
| 66 | + tools:visibility="visible"/> |
72 | 67 |
|
73 | 68 | </androidx.constraintlayout.widget.ConstraintLayout> |
74 | 69 |
|
75 | | - <LinearLayout |
76 | | - android:id="@+id/members_section" |
| 70 | + <androidx.recyclerview.widget.RecyclerView |
| 71 | + android:id="@+id/members_recycler_view" |
77 | 72 | android:layout_width="match_parent" |
78 | | - android:layout_height="wrap_content" |
79 | | - android:orientation="vertical"> |
80 | | - |
81 | | - <androidx.constraintlayout.widget.ConstraintLayout |
82 | | - android:layout_width="match_parent" |
83 | | - android:layout_height="match_parent" |
84 | | - android:background="@color/actionbar_start_color"> |
85 | | - |
86 | | - <TextView |
87 | | - android:id="@+id/members_title" |
88 | | - android:layout_width="wrap_content" |
89 | | - android:layout_height="50dp" |
90 | | - android:layout_centerVertical="true" |
91 | | - android:gravity="center" |
92 | | - android:text="@string/space_members" |
93 | | - android:layout_marginStart="@dimen/standard_half_margin" |
94 | | - android:textAllCaps="true" |
95 | | - android:textColor="@color/white" |
96 | | - android:textStyle="bold" |
97 | | - android:accessibilityHeading="true" |
98 | | - app:layout_constraintStart_toStartOf="parent" |
99 | | - app:layout_constraintTop_toTopOf="parent"/> |
100 | | - |
101 | | - <ImageButton |
102 | | - android:id="@+id/add_member_button" |
103 | | - android:layout_width="48dp" |
104 | | - android:layout_height="48dp" |
105 | | - android:padding="@dimen/standard_padding" |
106 | | - android:background="@color/transparent" |
107 | | - android:src="@drawable/ic_add" |
108 | | - android:contentDescription="@string/content_description_add_member" |
109 | | - android:visibility="gone" |
110 | | - android:focusable="true" |
111 | | - android:clickable="true" |
112 | | - app:layout_constraintEnd_toEndOf="parent" |
113 | | - app:layout_constraintTop_toTopOf="parent" |
114 | | - tools:visibility="visible"/> |
115 | | - |
116 | | - </androidx.constraintlayout.widget.ConstraintLayout> |
117 | | - |
118 | | - <androidx.recyclerview.widget.RecyclerView |
119 | | - android:id="@+id/members_recycler_view" |
120 | | - android:layout_width="match_parent" |
121 | | - android:layout_height="0dp" |
122 | | - android:layout_weight="1" |
123 | | - android:scrollbars="vertical" |
124 | | - android:visibility="visible" |
125 | | - tools:visibility="visible"/> |
126 | | - |
127 | | - </LinearLayout> |
| 73 | + android:layout_height="0dp" |
| 74 | + android:layout_weight="1" |
| 75 | + android:scrollbars="vertical" |
| 76 | + android:visibility="visible" |
| 77 | + tools:visibility="visible"/> |
128 | 78 |
|
129 | 79 | </LinearLayout> |
130 | 80 |
|
|
0 commit comments