Skip to content

Instantly share code, notes, and snippets.

@BrightnBubbly

BrightnBubbly/MainActivity.java Secret

Created Apr 19, 2020
Embed
What would you like to do?
<?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.ChannelListViewModel" />
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.dialogflowapplication.MainActivity">
<com.getstream.sdk.chat.view.ChannelListView
android:id="@+id/channelList"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:streamReadStateAvatarHeight="15dp"
app:streamReadStateAvatarWidth="15dp"
app:streamReadStateTextSize="9sp"
app:streamShowReadState="true" />
<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"
android:layout_marginBottom="16dp"
app:isGone="@{!safeUnbox(viewModel.loadingMore)}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.