This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 394
/
activity_member_details.xml
152 lines (133 loc) · 6.09 KB
/
activity_member_details.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/member_details_activity_main_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/riot_primary_background_color"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/member_details_action_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/primary_color">
<RelativeLayout
android:id="@+id/action_bar_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="16dp"
android:visibility="visible">
<!-- the member avatar-->
<RelativeLayout
android:id="@+id/member_avatar_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true">
<include
android:id="@+id/memberDetails_roundAvatar"
layout="@layout/vector_large_round_avatar"
android:layout_width="84dp"
android:layout_height="84dp" />
</RelativeLayout>
<ImageView
android:id="@+id/member_avatar_badge"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_alignRight="@id/member_avatar_container"
android:layout_alignTop="@id/member_avatar_container"
android:layout_marginRight="-7dp"
android:layout_marginTop="-0dp"
android:src="@drawable/admin_icon"
android:visibility="gone" />
<!-- the member name -->
<!-- keep singleLine="true" because maxLines="1" truncation is not the expected one.-->
<TextView
android:id="@+id/member_details_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/member_avatar_container"
android:layout_marginTop="10dp"
android:singleLine="true"
android:gravity="center_horizontal"
android:textColor="@android:color/white"
android:textSize="20sp" />
<!-- the member presence -->
<TextView
android:id="@+id/member_details_presence"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/member_details_name"
android:layout_marginBottom="16dp"
android:maxLines="1"
android:ellipsize="end"
android:gravity="center_horizontal"
android:textColor="?attr/default_text_light_color"
android:textSize="14sp" />
</RelativeLayout>
<android.support.v7.widget.Toolbar
android:id="@+id/member_details_toolbar"
style="@style/VectorToolbarStyle"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_alignParentTop="true"
android:background="@android:color/transparent"
app:contentInsetEnd="0dp"
app:contentInsetStart="0dp">
</android.support.v7.widget.Toolbar>
</RelativeLayout>
<!-- the member actions list: start new room, Make admin, block.. -->
<ExpandableListView
android:id="@+id/member_details_actions_list_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/member_details_action_bar"
android:cacheColorHint="@android:color/transparent"
android:divider="#00000000"
android:dividerHeight="0dp"
android:listSelector="@android:color/transparent" />
<include
android:id="@+id/devices_header_view"
layout="@layout/adapter_item_vector_recent_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/member_details_action_bar"
android:visibility="gone" />
<!-- devices list view: displayed when ExpandableListView is hidden -->
<ListView
android:id="@+id/member_details_devices_list_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/devices_header_view"
android:cacheColorHint="@android:color/transparent"
android:divider="#00000000"
android:dividerHeight="0dp"
android:listSelector="@android:color/transparent"
android:visibility="gone" />
<!-- progress bar view, displayed when an action in the list view is pressed -->
<include
android:id="@+id/member_details_list_view_progress_bar"
layout="@layout/progress_bar_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<!-- display the avatar in fullscreen -->
<RelativeLayout
android:id="@+id/member_details_fullscreen_avatar_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
android:visibility="gone">
<ProgressBar
android:id="@+id/progress_bar_view"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerInParent="true" />
<ImageView
android:id="@+id/member_details_fullscreen_avatar_image_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:scaleType="fitCenter" />
</RelativeLayout>
</RelativeLayout>