-
-
Save BrightnBubbly/af208b1c707a3c14c24aaab7c3ccc5d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<layout 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"> | |
<data> | |
<variable | |
name="viewModel" | |
type="com.getstream.sdk.chat.viewmodel.ChannelViewModel" /> | |
</data> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context="com.example.dialogflowapplication.ChannelActivity"> | |
<com.getstream.sdk.chat.view.ChannelHeaderView | |
android:id="@+id/channelHeader" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="#FFF" | |
app:streamChannelHeaderBackButtonShow="true" | |
app:layout_constraintEnd_toStartOf="@+id/messageList" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<com.getstream.sdk.chat.view.MessageListView | |
android:id="@+id/messageList" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_marginBottom="10dp" | |
android:background="#FFF" | |
app:layout_constraintBottom_toTopOf="@+id/message_input" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/channelHeader" | |
/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="16dp" | |
android:padding="6dp" | |
app:layout_constraintRight_toRightOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<ProgressBar | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:isGone="@{!safeUnbox(viewModel.loading)}" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<ProgressBar | |
android:layout_width="25dp" | |
android:layout_height="25dp" | |
app:isGone="@{!safeUnbox(viewModel.loadingMore)}" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="parent" /> | |
<com.example.dialogflowapplication.DialogInputView | |
android:id="@+id/message_input" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="32dp" | |
android:layout_marginBottom="0dp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintLeft_toLeftOf="parent" | |
app:layout_constraintRight_toRightOf="parent" | |
app:layout_constraintStart_toEndOf="@+id/messageList" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment