2018-10-19 14:26:38 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-01-16 19:25:43 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-10-29 14:57:36 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-10-29 17:20:08 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-05-23 16:44:51 +02:00
|
|
|
android:id="@+id/rootConstraintLayout"
|
2018-10-21 20:27:50 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-10-19 14:26:38 +02:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2019-01-16 19:25:43 +01:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
2019-05-16 19:14:02 +02:00
|
|
|
android:id="@+id/roomToolbar"
|
2019-07-17 12:29:19 +02:00
|
|
|
style="@style/VectorToolbarStyle"
|
2018-10-29 14:57:36 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="?actionBarSize"
|
2019-06-05 14:31:11 +02:00
|
|
|
android:elevation="4dp"
|
2019-08-08 14:14:10 +02:00
|
|
|
android:transitionName="toolbar"
|
2018-10-29 14:57:36 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-06-05 14:31:11 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2018-10-29 17:20:08 +01:00
|
|
|
|
2019-01-16 19:25:43 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2018-10-29 17:20:08 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<ImageView
|
2019-05-16 19:14:02 +02:00
|
|
|
android:id="@+id/roomToolbarAvatarImageView"
|
2018-10-29 17:20:08 +01:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_marginTop="8dp"
|
2019-03-18 14:56:08 +01:00
|
|
|
android:layout_marginBottom="8dp"
|
2018-10-29 17:20:08 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
|
|
|
<TextView
|
2019-05-16 19:14:02 +02:00
|
|
|
android:id="@+id/roomToolbarTitleView"
|
2018-10-30 11:47:05 +01:00
|
|
|
android:layout_width="0dp"
|
2018-10-29 17:20:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
2019-03-18 14:56:08 +01:00
|
|
|
android:layout_marginEnd="8dp"
|
2018-10-29 17:20:08 +01:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2019-04-03 12:30:09 +02:00
|
|
|
android:textColor="?vctr_toolbar_primary_text_color"
|
2018-10-29 17:20:08 +01:00
|
|
|
android:textSize="18sp"
|
2019-05-16 19:14:02 +02:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/roomToolbarSubtitleView"
|
2018-10-29 17:20:08 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2019-05-16 19:14:02 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/roomToolbarAvatarImageView"
|
2018-10-29 17:20:08 +01:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2019-06-05 14:31:11 +02:00
|
|
|
tools:text="@sample/matrix.json/data/roomName" />
|
2018-10-29 17:20:08 +01:00
|
|
|
|
|
|
|
<TextView
|
2019-05-16 19:14:02 +02:00
|
|
|
android:id="@+id/roomToolbarSubtitleView"
|
2018-10-30 11:47:05 +01:00
|
|
|
android:layout_width="0dp"
|
2018-10-29 17:20:08 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
2019-03-18 14:56:08 +01:00
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2018-10-29 17:20:08 +01:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2019-04-03 12:30:09 +02:00
|
|
|
android:textColor="?vctr_toolbar_secondary_text_color"
|
2018-10-29 17:20:08 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2019-05-16 19:14:02 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/roomToolbarAvatarImageView"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/roomToolbarTitleView"
|
2019-06-05 14:31:11 +02:00
|
|
|
tools:text="@sample/matrix.json/data/roomTopic" />
|
2018-10-29 17:20:08 +01:00
|
|
|
|
|
|
|
|
2019-01-16 19:25:43 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2018-10-29 17:20:08 +01:00
|
|
|
|
2019-01-16 19:25:43 +01:00
|
|
|
</androidx.appcompat.widget.Toolbar>
|
2018-10-29 14:57:36 +01:00
|
|
|
|
2019-08-08 14:14:10 +02:00
|
|
|
<!-- Trick to remove surrounding padding (clip frome wrapping frame) -->
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/syncProgressBarWrap"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="3dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/roomToolbar"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/syncProgressBar"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="14dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="?riotx_header_panel_background"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
</FrameLayout>
|
|
|
|
|
2018-10-22 15:17:50 +02:00
|
|
|
<com.airbnb.epoxy.EpoxyRecyclerView
|
2018-10-21 20:27:50 +02:00
|
|
|
android:id="@+id/recyclerView"
|
2018-10-29 14:57:36 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2019-08-14 14:18:42 +02:00
|
|
|
android:overScrollMode="always"
|
2019-07-26 14:51:14 +02:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/recyclerViewBarrier"
|
2018-10-29 14:57:36 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-08-08 14:14:10 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/syncProgressBarWrap"
|
2019-05-22 15:33:22 +02:00
|
|
|
tools:listitem="@layout/item_timeline_event_base" />
|
2018-10-19 15:30:40 +02:00
|
|
|
|
2019-07-26 14:51:14 +02:00
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/recyclerViewBarrier"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="top"
|
|
|
|
app:constraint_referenced_ids="composerLayout,notificationAreaView" />
|
2018-11-08 19:08:14 +01:00
|
|
|
|
2019-07-02 17:27:08 +02:00
|
|
|
<im.vector.riotx.features.home.room.detail.composer.TextComposerView
|
2018-11-08 19:08:14 +01:00
|
|
|
android:id="@+id/composerLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-01 14:36:39 +02:00
|
|
|
android:background="?riotx_background"
|
|
|
|
android:transitionName="composer"
|
2018-11-08 19:08:14 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-05-25 14:49:35 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2018-11-08 19:08:14 +01:00
|
|
|
|
2019-08-08 17:50:16 +02:00
|
|
|
<im.vector.riotx.core.ui.views.NotificationAreaView
|
2019-07-26 14:51:14 +02:00
|
|
|
android:id="@+id/notificationAreaView"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
android:paddingBottom="16dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
2019-07-02 17:27:08 +02:00
|
|
|
<im.vector.riotx.features.invite.VectorInviteView
|
2019-05-07 19:33:58 +02:00
|
|
|
android:id="@+id/inviteView"
|
|
|
|
android:layout_width="0dp"
|
2019-05-13 19:23:02 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-07-01 15:24:28 +02:00
|
|
|
android:background="?riotx_background"
|
2019-05-07 19:33:58 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-05-16 19:14:02 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/roomToolbar"
|
2019-05-22 15:33:22 +02:00
|
|
|
tools:visibility="visible" />
|
2019-05-07 19:33:58 +02:00
|
|
|
|
2019-07-25 19:34:39 +02:00
|
|
|
|
2019-01-16 19:25:43 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|