Use DiffUtil with thread recyclerview
Also added a progress indicator at the top while fetching older messages
This commit is contained in:
parent
c5034a64d5
commit
d8dadd1f55
11 changed files with 207 additions and 110 deletions
17
app/src/main/res/layout/item_thread_loading.xml
Normal file
17
app/src/main/res/layout/item_thread_loading.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
||||
android:id="@+id/thread_loading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginVertical="@dimen/small_margin"
|
||||
android:indeterminate="true"
|
||||
app:indicatorSize="@dimen/big_margin"
|
||||
app:trackCornerRadius="@dimen/normal_margin" />
|
||||
</LinearLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue