add handling for multiple attachments in one mms

This commit is contained in:
tibbi 2020-04-12 19:30:03 +02:00
parent a5d8633593
commit cc6dcafa88
4 changed files with 54 additions and 41 deletions

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/attachment_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:paddingBottom="@dimen/medium_margin" />

View file

@ -26,13 +26,11 @@
android:layout_marginEnd="@dimen/medium_margin"
android:visibility="gone" />
<ImageView
android:id="@+id/thread_message_image"
<LinearLayout
android:id="@+id/thread_mesage_attachments_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/medium_margin"
android:layout_toEndOf="@+id/thread_message_photo"
android:adjustViewBounds="true" />
android:orientation="vertical" />
<ImageView
android:id="@+id/thread_message_play_outline"

View file

@ -17,19 +17,18 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintWidth_percent="0.7">
<ImageView
android:id="@+id/thread_message_image"
<LinearLayout
android:id="@+id/thread_mesage_attachments_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/medium_margin"
android:adjustViewBounds="true" />
android:orientation="vertical" />
<ImageView
android:id="@+id/thread_message_play_outline"
android:layout_width="@dimen/play_outline_size"
android:layout_height="@dimen/play_outline_size"
android:layout_alignEnd="@+id/thread_message_image"
android:layout_alignBottom="@+id/thread_message_image"
android:layout_alignEnd="@+id/thread_mesage_attachments_holder"
android:layout_alignBottom="@+id/thread_mesage_attachments_holder"
android:layout_margin="@dimen/medium_margin"
android:src="@drawable/ic_play_outline"
android:visibility="gone" />
@ -38,7 +37,7 @@
android:id="@+id/thread_message_body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/thread_message_image"
android:layout_below="@+id/thread_mesage_attachments_holder"
android:layout_alignParentEnd="true"
android:background="@drawable/item_sent_background"
android:padding="@dimen/normal_margin"