Write all rows from Conversations table into Realm, and show snippets in list

This commit is contained in:
Moez Bhatti
2017-05-28 14:27:57 -04:00
parent 01996f0e91
commit cdecc6c5a8
8 changed files with 148 additions and 13 deletions
+4 -8
View File
@@ -6,13 +6,9 @@
android:layout_height="match_parent"
tools:context="com.moez.QKSMS.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<android.support.v7.widget.RecyclerView
android:id="@+id/conversation_list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.constraint.ConstraintLayout>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/conversation_snippet"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>