Update message adapter with layout binding

This commit is contained in:
Arne 2024-12-08 22:18:04 +01:00
parent 19221f3499
commit f00ddc134f
3 changed files with 918 additions and 618 deletions

View file

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<com.daimajia.swipe.SwipeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<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"
xmlns:tools="http://schemas.android.com/tools" >
<com.daimajia.swipe.SwipeLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
app:drag_edge="left"
@ -139,7 +140,7 @@
tools:text="10:42" />
<TextView
android:id="@+id/username"
android:id="@+id/message_username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
@ -173,3 +174,4 @@
app:layout_constraintTop_toBottomOf="@+id/reactions_anchor" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.daimajia.swipe.SwipeLayout>
</layout>

View file

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<com.daimajia.swipe.SwipeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<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"
xmlns:tools="http://schemas.android.com/tools">
<com.daimajia.swipe.SwipeLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
app:drag_edge="left"
@ -171,3 +172,4 @@
</androidx.constraintlayout.widget.ConstraintLayout>
</com.daimajia.swipe.SwipeLayout>
</layout>