adding an Add Attachment button at the sending screen

This commit is contained in:
tibbi 2020-04-12 11:41:52 +02:00
parent 8263327f70
commit ff1edd12b6
2 changed files with 19 additions and 2 deletions

View File

@ -129,6 +129,7 @@ class ThreadActivity : SimpleActivity() {
thread_type_message.setColors(config.textColor, config.primaryColor, config.backgroundColor) thread_type_message.setColors(config.textColor, config.primaryColor, config.backgroundColor)
thread_send_message.applyColorFilter(config.textColor) thread_send_message.applyColorFilter(config.textColor)
confirm_manage_contacts.applyColorFilter(config.textColor) confirm_manage_contacts.applyColorFilter(config.textColor)
thread_add_attachment.applyColorFilter(config.textColor)
thread_send_message.setOnClickListener { thread_send_message.setOnClickListener {
val msg = thread_type_message.value val msg = thread_type_message.value
@ -171,6 +172,9 @@ class ThreadActivity : SimpleActivity() {
} }
thread_type_message.setText(intent.getStringExtra(THREAD_TEXT)) thread_type_message.setText(intent.getStringExtra(THREAD_TEXT))
thread_add_attachment.setOnClickListener {
}
} }
private fun blockNumber() { private fun blockNumber() {

View File

@ -98,15 +98,28 @@
android:background="@color/divider_grey" android:background="@color/divider_grey"
android:importantForAccessibility="no" /> android:importantForAccessibility="no" />
<ImageView
android:id="@+id/thread_add_attachment"
android:layout_width="@dimen/normal_icon_size"
android:layout_height="@dimen/normal_icon_size"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layout_marginTop="@dimen/small_margin"
android:layout_marginEnd="@dimen/small_margin"
android:alpha="0.9"
android:background="?selectableItemBackgroundBorderless"
android:padding="@dimen/normal_margin"
android:src="@drawable/ic_plus_vector" />
<com.simplemobiletools.commons.views.MyEditText <com.simplemobiletools.commons.views.MyEditText
android:id="@+id/thread_type_message" android:id="@+id/thread_type_message"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignTop="@+id/message_divider" android:layout_alignTop="@+id/message_divider"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginStart="@dimen/activity_margin" android:layout_marginEnd="@dimen/small_margin"
android:layout_marginEnd="@dimen/activity_margin"
android:layout_toStartOf="@+id/thread_send_message" android:layout_toStartOf="@+id/thread_send_message"
android:layout_toEndOf="@+id/thread_add_attachment"
android:background="@android:color/transparent" android:background="@android:color/transparent"
android:gravity="center_vertical" android:gravity="center_vertical"
android:hint="@string/type_a_message" /> android:hint="@string/type_a_message" />