element-android/vector/src/main/res/layout/fragment_timeline.xml

183 lines
7.6 KiB
XML
Raw Normal View History

2018-10-19 15:26:38 +03:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2018-10-29 19:20:08 +03:00
xmlns:tools="http://schemas.android.com/tools"
2019-05-23 17:44:51 +03:00
android:id="@+id/rootConstraintLayout"
2018-10-21 21:27:50 +03:00
android:layout_width="match_parent"
2018-10-19 15:26:38 +03:00
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-06-05 15:31:11 +03:00
app:layout_constraintTop_toTopOf="parent">
2018-10-29 19:20:08 +03:00
2021-07-12 18:49:44 +03:00
<im.vector.app.core.ui.views.CurrentCallsView
android:id="@+id/currentCallsView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:visibility="gone"
2021-10-20 18:39:59 +03:00
tools:visibility="gone" />
2021-07-12 18:49:44 +03:00
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/roomToolbar"
2018-10-29 19:20:08 +03:00
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:transitionName="toolbar">
<include
android:id="@+id/includeThreadToolbar"
layout="@layout/view_room_detail_thread_toolbar" />
<include
android:id="@+id/includeRoomToolbar"
layout="@layout/view_room_detail_toolbar" />
2018-10-29 19:20:08 +03:00
</com.google.android.material.appbar.MaterialToolbar>
2018-10-29 19:20:08 +03:00
</com.google.android.material.appbar.AppBarLayout>
2019-08-20 20:12:22 +03:00
<androidx.constraintlayout.widget.Barrier
android:id="@+id/timelineRecyclerViewBarrier"
2019-08-20 20:12:22 +03:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="top"
app:constraint_referenced_ids="composerLayout,notificationAreaView,failedMessagesWarningStub" />
<im.vector.app.features.sync.widget.SyncStateView
android:id="@+id/syncStateView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/appBarLayout" />
<im.vector.app.features.call.conference.RemoveJitsiWidgetView
android:id="@+id/removeJitsiWidgetView"
2020-08-12 15:02:00 +03:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:colorBackground"
android:minHeight="54dp"
2021-07-12 18:49:44 +03:00
android:visibility="visible"
app:layout_constraintTop_toBottomOf="@id/syncStateView" />
2019-10-30 21:00:00 +03:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/timelineRecyclerView"
android:layout_width="0dp"
android:layout_height="0dp"
2019-08-14 15:18:42 +03:00
android:overScrollMode="always"
app:layout_constraintBottom_toTopOf="@id/timelineRecyclerViewBarrier"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/removeJitsiWidgetView"
tools:listitem="@layout/item_timeline_event_base" />
2018-10-19 16:30:40 +03:00
2021-06-22 17:29:19 +03:00
<com.google.android.material.chip.Chip
android:id="@+id/jumpToReadMarkerView"
2021-06-24 18:40:45 +03:00
style="?vctr_jump_to_unread_style"
2021-06-22 17:29:19 +03:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-06-22 17:29:19 +03:00
android:layout_gravity="center"
android:layout_marginTop="24dp"
android:text="@string/room_jump_to_first_unread"
android:visibility="invisible"
2021-07-12 18:49:44 +03:00
app:chipIcon="@drawable/ic_jump_to_unread"
app:chipIconTint="?colorPrimary"
2021-07-12 18:49:44 +03:00
app:closeIcon="@drawable/ic_close_24dp"
app:layout_constraintEnd_toEndOf="parent"
2019-08-20 20:12:22 +03:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/removeJitsiWidgetView"
2021-06-22 17:29:19 +03:00
tools:visibility="visible" />
2020-05-28 18:08:57 +03:00
<im.vector.app.core.ui.views.NotificationAreaView
android:id="@+id/notificationAreaView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<ViewStub
android:id="@+id/failedMessagesWarningStub"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inflatedId="@+id/failedMessagesWarningStub"
android:layout="@layout/view_stub_failed_message_warning_layout"
app:layout_constraintBottom_toTopOf="@id/composerLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<im.vector.app.features.home.room.detail.composer.MessageComposerView
2019-08-20 20:12:22 +03:00
android:id="@+id/composerLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-06-09 12:51:04 +03:00
android:background="?android:colorBackground"
android:minHeight="56dp"
2019-08-20 20:12:22 +03:00
android:transitionName="composer"
android:visibility="gone"
2019-08-20 20:12:22 +03:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:visibility="visible" />
2019-08-20 20:12:22 +03:00
<im.vector.app.features.home.room.detail.composer.voice.VoiceMessageRecorderView
android:id="@+id/voiceMessageRecorderView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:visibility="visible" />
2019-08-20 20:12:22 +03:00
<ViewStub
android:id="@+id/inviteViewStub"
android:layout_width="0dp"
android:layout_height="0dp"
2021-06-09 12:51:04 +03:00
android:background="?android:colorBackground"
android:layout="@layout/view_stub_invite_layout"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/appBarLayout" />
2020-06-11 17:39:41 +03:00
<androidx.constraintlayout.widget.Barrier
android:id="@+id/badgeBarrier"
android:layout_width="0dp"
android:layout_height="0dp"
app:barrierDirection="top"
app:constraint_referenced_ids="composerLayout,notificationAreaView, failedMessagesWarningStub" />
2020-06-11 17:39:41 +03:00
<im.vector.app.core.platform.BadgeFloatingActionButton
android:id="@+id/jumpToBottomView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:contentDescription="@string/a11y_jump_to_bottom"
2021-06-09 12:51:04 +03:00
android:src="@drawable/ic_expand_more"
app:backgroundTint="#FFFFFF"
2021-06-09 12:51:04 +03:00
app:badgeBackgroundColor="?colorPrimary"
app:badgeTextColor="?colorOnPrimary"
app:badgeTextPadding="2dp"
app:badgeTextSize="10sp"
2020-06-11 17:39:41 +03:00
app:layout_constraintBottom_toTopOf="@id/badgeBarrier"
app:layout_constraintEnd_toEndOf="parent"
2021-06-09 12:51:04 +03:00
app:tint="@android:color/black" />
2020-12-15 12:21:12 +03:00
<nl.dionsegijn.konfetti.KonfettiView
android:id="@+id/viewKonfetti"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible" />
<com.jetradarmobile.snowfall.SnowfallView
android:id="@+id/viewSnowFall"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?vctr_chat_effect_snow_background"
android:visibility="invisible" />
</androidx.constraintlayout.widget.ConstraintLayout>