Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
2.9 kB
2
Indexable
Never
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/main_layout"
    android:background="@color/application_background"
    android:orientation="vertical">
    <com.hit.generic.medical.project.ui.customviews.TopLayoutCustomView
        android:id="@+id/top_layout"
        android:layout_width="match_parent"
        android:layout_height="5dp"
        app:iconDrawable="@drawable/ic_exit_button"
        android:layout_weight="1"
        app:text="Loading..." />


    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/messageRecyclerView"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_above="@+id/linearLayout"
        android:layout_marginBottom="0dp"
        android:background="@null"
        android:paddingHorizontal="16dp"
        android:layout_weight="10"/>
    <LinearLayout
        android:id="@+id/linearLayout"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_alignParentBottom="true"
        android:background="@color/colorPrimary50"
        android:orientation="horizontal"
        android:paddingHorizontal="10dp"
        android:layout_weight="1.4">

        <ImageView
            android:id="@+id/addMessageImageView"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_gravity="center"
            app:srcCompat="@drawable/add_photo_chat" />

        <EditText
            android:id="@+id/messageEditText"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_margin="10dp"
            android:layout_weight="1"
            android:background="@drawable/edit_text_shadow"
            android:hint="@string/type_a_message"
            android:inputType="text"
            android:textAlignment="center"
            android:padding="10dp" />

        <FrameLayout
            android:id="@+id/layoutSend"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_gravity="center">

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/sendButton"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginStart="4dp"
                android:padding="5dp"
                android:src="@drawable/send_icon" />
        </FrameLayout>


    </LinearLayout>
</LinearLayout>