adding some new views at the New Message screen

This commit is contained in:
tibbi 2020-04-06 10:23:26 +02:00
parent b5aa561a92
commit 127d7d8930
1 changed files with 49 additions and 0 deletions

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/new_message_holder"
android:layout_width="match_parent"
android:layout_height="match_parent">
@ -43,4 +44,52 @@
android:background="@color/divider_grey"
android:importantForAccessibility="no" />
<com.simplemobiletools.commons.views.MyRecyclerView
android:id="@+id/messages_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/message_divider_three"
android:layout_below="@+id/message_divider_two"
android:clipToPadding="false"
android:overScrollMode="ifContentScrolls"
android:padding="@dimen/activity_margin"
android:scrollbars="none"
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager"
app:stackFromEnd="true" />
<View
android:id="@+id/message_divider_three"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_above="@+id/thread_send_message"
android:background="@color/divider_grey"
android:importantForAccessibility="no" />
<com.simplemobiletools.commons.views.MyEditText
android:id="@+id/thread_type_message"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignTop="@+id/message_divider_three"
android:layout_alignParentBottom="true"
android:layout_marginStart="@dimen/activity_margin"
android:layout_marginEnd="@dimen/activity_margin"
android:layout_toStartOf="@+id/thread_send_message"
android:background="@android:color/transparent"
android:gravity="center_vertical"
android:hint="@string/type_a_message" />
<ImageView
android:id="@+id/thread_send_message"
android:layout_width="@dimen/normal_icon_size"
android:layout_height="@dimen/normal_icon_size"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_marginTop="@dimen/small_margin"
android:layout_marginEnd="@dimen/small_margin"
android:alpha="0.4"
android:background="?selectableItemBackgroundBorderless"
android:clickable="false"
android:padding="@dimen/medium_margin"
android:src="@drawable/ic_send_vector" />
</RelativeLayout>