Created
June 29, 2020 18:44
-
-
Save jetaggart/6dae984780ac78cfbb784aedcd41c380 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <!-- android/app/src/main/res/layout/fragment_channels.xml:1 --> | |
| <?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> | |
| <FrameLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context=".ChannelsFragment"> | |
| <androidx.constraintlayout.widget.ConstraintLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context="com.example.chattutorial.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> | |
| <com.google.android.material.floatingactionbutton.FloatingActionButton | |
| android:id="@+id/new_channel" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="end|bottom" | |
| android:layout_margin="16dp" | |
| android:src="@drawable/ic_add_white_24dp" /> | |
| </FrameLayout> | |
| </layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment