display mms attachments at the conversations

This commit is contained in:
tibbi 2020-04-09 10:52:14 +02:00
parent 500f2bc8fe
commit d0b4e17300
3 changed files with 45 additions and 5 deletions

View file

@ -12,17 +12,26 @@
android:id="@+id/thread_message_wrapper"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/item_received_background"
android:padding="@dimen/activity_margin"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintWidth_percent="0.7">
<ImageView
android:id="@+id/thread_message_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/medium_margin"
android:adjustViewBounds="true" />
<TextView
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_alignParentStart="true"
android:background="@drawable/item_received_background"
android:padding="@dimen/activity_margin"
android:textSize="@dimen/normal_text_size"
tools:text="Received message" />
</RelativeLayout>

View file

@ -12,17 +12,26 @@
android:id="@+id/thread_message_wrapper"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/item_sent_background"
android:padding="@dimen/activity_margin"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintWidth_percent="0.7">
<ImageView
android:id="@+id/thread_message_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/medium_margin"
android:adjustViewBounds="true" />
<TextView
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_alignParentEnd="true"
android:background="@drawable/item_sent_background"
android:padding="@dimen/activity_margin"
android:textSize="@dimen/normal_text_size"
tools:text="Sent message" />
</RelativeLayout>