mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
Add some spacing between attachments and text
This commit is contained in:
@@ -260,8 +260,9 @@ class ThreadAdapter(
|
|||||||
holder.viewClicked(message)
|
holder.viewClicked(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
thread_mesage_attachments_holder.removeAllViews()
|
|
||||||
if (message.attachment?.attachments?.isNotEmpty() == true) {
|
if (message.attachment?.attachments?.isNotEmpty() == true) {
|
||||||
|
thread_mesage_attachments_holder.beVisible()
|
||||||
|
thread_mesage_attachments_holder.removeAllViews()
|
||||||
for (attachment in message.attachment.attachments) {
|
for (attachment in message.attachment.attachments) {
|
||||||
val mimetype = attachment.mimetype
|
val mimetype = attachment.mimetype
|
||||||
when {
|
when {
|
||||||
@@ -272,6 +273,8 @@ class ThreadAdapter(
|
|||||||
|
|
||||||
thread_message_play_outline.beVisibleIf(mimetype.startsWith("video/"))
|
thread_message_play_outline.beVisibleIf(mimetype.startsWith("video/"))
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
thread_mesage_attachments_holder.beGone()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -5,5 +5,4 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:paddingBottom="@dimen/medium_margin"
|
|
||||||
app:shapeAppearanceOverlay="@style/roundedImageView" />
|
app:shapeAppearanceOverlay="@style/roundedImageView" />
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
android:id="@+id/thread_message_holder"
|
android:id="@+id/thread_message_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/medium_margin"
|
android:layout_marginTop="@dimen/small_margin"
|
||||||
android:foreground="@drawable/selector"
|
android:foreground="@drawable/selector"
|
||||||
android:paddingStart="@dimen/activity_margin"
|
android:paddingStart="@dimen/activity_margin"
|
||||||
android:paddingEnd="@dimen/activity_margin">
|
android:paddingEnd="@dimen/activity_margin">
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
android:id="@+id/thread_mesage_attachments_holder"
|
android:id="@+id/thread_mesage_attachments_holder"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginVertical="@dimen/tiny_margin"
|
||||||
android:divider="@drawable/linear_layout_vertical_divider"
|
android:divider="@drawable/linear_layout_vertical_divider"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:showDividers="middle" />
|
android:showDividers="middle" />
|
||||||
@@ -44,6 +45,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/thread_mesage_attachments_holder"
|
android:layout_below="@+id/thread_mesage_attachments_holder"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_marginVertical="@dimen/tiny_margin"
|
||||||
android:autoLink="email|web"
|
android:autoLink="email|web"
|
||||||
android:background="@drawable/item_sent_background"
|
android:background="@drawable/item_sent_background"
|
||||||
android:padding="@dimen/normal_margin"
|
android:padding="@dimen/normal_margin"
|
||||||
|
Reference in New Issue
Block a user