allow adding multiple mms attachments

This commit is contained in:
tibbi 2020-04-13 10:44:44 +02:00
parent f768d0cde9
commit 5fb6d81586
3 changed files with 56 additions and 25 deletions

View file

@ -95,7 +95,7 @@
android:id="@+id/message_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_above="@+id/thread_attachment_preview"
android:layout_above="@+id/thread_attachments_holder"
android:background="@color/divider_grey"
android:importantForAccessibility="no" />
@ -112,25 +112,27 @@
android:padding="@dimen/normal_margin"
android:src="@drawable/ic_plus_vector" />
<ImageView
android:id="@+id/thread_attachment_preview"
android:layout_width="@dimen/attachment_preview_size"
android:layout_height="@dimen/attachment_preview_size"
<HorizontalScrollView
android:id="@+id/thread_attachments_holder"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/thread_type_message"
android:layout_alignStart="@+id/thread_type_message"
android:layout_marginTop="@dimen/normal_margin"
android:layout_marginBottom="@dimen/small_margin"
android:visibility="gone" />
android:overScrollMode="never"
android:scrollbars="none"
android:visibility="gone">
<ImageView
android:id="@+id/thread_remove_attachment"
android:layout_width="@dimen/remove_attachment_size"
android:layout_height="@dimen/remove_attachment_size"
android:layout_alignTop="@+id/thread_attachment_preview"
android:layout_alignEnd="@+id/thread_attachment_preview"
android:padding="@dimen/tiny_margin"
android:src="@drawable/ic_cross_vector"
android:visibility="gone" />
<LinearLayout
android:id="@+id/thread_attachments_wrapper"
android:layout_width="wrap_content"
android:layout_height="@dimen/attachment_preview_size"
android:divider="@drawable/linear_layout_horizontal_divider"
android:orientation="horizontal"
android:paddingEnd="@dimen/normal_margin"
android:showDividers="middle" />
</HorizontalScrollView>
<com.simplemobiletools.commons.views.MyEditText
android:id="@+id/thread_type_message"