use Rx to insert conversations and messages into realm asyncronously

This commit is contained in:
Moez Bhatti
2017-08-14 22:46:02 -04:00
parent 26a7fe72c8
commit 52d2116d10
10 changed files with 95 additions and 40 deletions
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@android:color/white" />
</shape>
@@ -3,12 +3,24 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:orientation="vertical">
<ProgressBar
android:id="@+id/conversation_progress"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:progressDrawable="@drawable/progress_drawable"
android:indeterminate="true"
android:indeterminateTint="@color/colorPrimary"
android:visibility="gone" />
<android.support.v7.widget.RecyclerView
android:id="@+id/conversation_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:clipChildren="false"
android:clipToPadding="false"
android:paddingBottom="8dp"