bottom_sheet_space_settings.xml 5.86 KB
Newer Older
Valere's avatar
Valere committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="?riotx_bottom_sheet_background"
    android:orientation="vertical">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
        android:padding="8dp"
        android:paddingStart="16dp"
        android:paddingEnd="8dp">

        <ImageView
Benoit Marty's avatar
Benoit Marty committed
19
            android:id="@+id/spaceAvatarImageView"
Valere's avatar
Valere committed
20
21
22
23
24
25
26
27
28
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:contentDescription="@string/avatar"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            tools:src="@tools:sample/avatars" />

        <TextView
Benoit Marty's avatar
Benoit Marty committed
29
30
            android:id="@+id/spaceNameView"
            android:layout_width="0dp"
Valere's avatar
Valere committed
31
32
33
34
35
36
37
38
39
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/layout_horizontal_margin"
            android:duplicateParentState="true"
            android:ellipsize="end"
            android:maxLines="1"
            android:textColor="?riotx_text_primary"
            android:textSize="15sp"
            android:textStyle="bold"
            app:layout_constrainedWidth="true"
Benoit Marty's avatar
Benoit Marty committed
40
            app:layout_constraintBottom_toTopOf="@+id/spaceDescription"
Valere's avatar
Valere committed
41
            app:layout_constraintEnd_toStartOf="@id/spaceBetaTag"
Benoit Marty's avatar
Benoit Marty committed
42
            app:layout_constraintStart_toEndOf="@id/spaceAvatarImageView"
Valere's avatar
Valere committed
43
            app:layout_constraintTop_toTopOf="parent"
Benoit Marty's avatar
Benoit Marty committed
44
            app:layout_constraintVertical_chainStyle="packed"
Valere's avatar
Valere committed
45
46
            tools:text="@sample/matrix.json/data/displayName" />

Valere's avatar
Valere committed
47
48
49
50
51
        <ImageView
            android:id="@+id/spaceBetaTag"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginEnd="8dp"
Benoit Marty's avatar
Benoit Marty committed
52
            android:contentDescription="@string/a11y_beta"
Valere's avatar
Valere committed
53
54
55
56
            android:src="@drawable/ic_beta_pill"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

Valere's avatar
Valere committed
57
        <TextView
Benoit Marty's avatar
Benoit Marty committed
58
            android:id="@+id/spaceDescription"
Valere's avatar
Valere committed
59
60
61
62
63
64
65
66
67
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/layout_horizontal_margin"
            android:layout_marginTop="3dp"
            android:layout_marginEnd="8dp"
            android:ellipsize="end"
            android:maxLines="1"
            android:textColor="?riotx_text_secondary"
            android:textSize="15sp"
Benoit Marty's avatar
Benoit Marty committed
68
69
            android:visibility="gone"
            app:layout_constraintBottom_toBottomOf="parent"
Valere's avatar
Valere committed
70
            app:layout_constraintEnd_toEndOf="parent"
Benoit Marty's avatar
Benoit Marty committed
71
72
73
74
            app:layout_constraintStart_toEndOf="@id/spaceAvatarImageView"
            app:layout_constraintTop_toBottomOf="@+id/spaceNameView"
            tools:text="@sample/matrix.json/data/message"
            tools:visibility="visible" />
Valere's avatar
Valere committed
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

    </androidx.constraintlayout.widget.ConstraintLayout>

    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="?vctr_list_divider_color" />

    <im.vector.app.core.ui.views.BottomSheetActionButton
        android:id="@+id/invitePeople"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:actionTitle="@string/invite_people_menu"
        app:leftIcon="@drawable/ic_invite_people"
        app:tint="?attr/riotx_text_primary"
        app:titleTextColor="?attr/riotx_text_primary" />

    <im.vector.app.core.ui.views.BottomSheetActionButton
        android:id="@+id/showMemberList"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:actionTitle="@string/list_members"
        app:leftIcon="@drawable/ic_room_profile_member_list"
        app:tint="?attr/riotx_text_primary"
        app:titleTextColor="?attr/riotx_text_primary" />

Benoit Marty's avatar
Benoit Marty committed
101
    <!-- Only visible when in developer mode -->
Valere's avatar
Valere committed
102
103
104
105
106
107
108
    <im.vector.app.core.ui.views.BottomSheetActionButton
        android:id="@+id/spaceSettings"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:actionTitle="@string/settings"
        app:leftIcon="@drawable/ic_settings_root_general"
        app:tint="?attr/riotx_text_primary"
Valere's avatar
Valere committed
109
        app:titleTextColor="?attr/riotx_text_primary" />
Valere's avatar
Valere committed
110
111
112
113
114
115
116
117
118
119
120

    <im.vector.app.core.ui.views.BottomSheetActionButton
        android:id="@+id/exploreRooms"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:actionTitle="@string/space_explore_activity_title"
        app:leftIcon="@drawable/ic_explore"
        app:tint="?attr/riotx_text_primary"
        app:titleTextColor="?attr/riotx_text_primary"
        tools:actionDescription="" />

Valere's avatar
Valere committed
121
122
123
124
125
126
127
128
129
130
131
132

    <im.vector.app.core.ui.views.BottomSheetActionButton
        android:id="@+id/addRooms"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:actionTitle="@string/space_add_child_title"
        app:leftIcon="@drawable/ic_add_black"
        app:tint="?attr/riotx_text_primary"
        app:titleTextColor="?attr/riotx_text_primary"
        tools:actionDescription="" />


Valere's avatar
Valere committed
133
134
135
136
137
138
139
140
141
142
    <im.vector.app.core.ui.views.BottomSheetActionButton
        android:id="@+id/leaveSpace"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:actionTitle="@string/leave_space"
        app:leftIcon="@drawable/ic_room_actions_leave"
        app:tint="@color/riotx_destructive_accent"
        app:titleTextColor="@color/riotx_destructive_accent" />

</LinearLayout>