2014-10-22 16:38:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-03-30 08:26:01 +00:00
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2019-04-26 08:23:26 +00:00
|
|
|
<RelativeLayout xmlns:tools="http://schemas.android.com/tools"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:layout_width="match_parent"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:layout_height="match_parent">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-21 10:04:48 +00:00
|
|
|
<ListView
|
|
|
|
android:id="@+id/messages_view"
|
|
|
|
android:layout_width="fill_parent"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:layout_above="@+id/snackbar"
|
2018-09-11 07:56:29 +00:00
|
|
|
android:layout_alignParentStart="true"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:divider="@null"
|
|
|
|
android:dividerHeight="0dp"
|
|
|
|
android:listSelector="@android:color/transparent"
|
|
|
|
android:stackFromBottom="true"
|
|
|
|
android:transcriptMode="normal"
|
2024-04-04 09:38:27 +00:00
|
|
|
tools:listitem="@layout/item_message_sent" />
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2018-03-30 08:26:01 +00:00
|
|
|
android:id="@+id/scroll_to_bottom_button"
|
2024-04-04 09:38:27 +00:00
|
|
|
style="?attr/floatingActionButtonSmallSurfaceStyle"
|
2018-03-30 08:26:01 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBottom="@+id/messages_view"
|
2019-04-26 08:23:26 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:src="@drawable/ic_keyboard_double_arrow_down_24dp"
|
|
|
|
android:visibility="visible"
|
2019-04-26 08:23:26 +00:00
|
|
|
app:useCompatPadding="true" />
|
2018-03-30 08:26:01 +00:00
|
|
|
|
|
|
|
<eu.siacs.conversations.ui.widget.UnreadCountCustomView
|
|
|
|
android:id="@+id/unread_count_custom_view"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:layout_width="18sp"
|
|
|
|
android:layout_height="18sp"
|
2018-03-30 08:26:01 +00:00
|
|
|
android:layout_alignTop="@+id/scroll_to_bottom_button"
|
|
|
|
android:layout_alignEnd="@+id/scroll_to_bottom_button"
|
2018-04-10 14:40:15 +00:00
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2018-03-30 08:26:01 +00:00
|
|
|
android:elevation="8dp"
|
|
|
|
android:visibility="gone"
|
2024-04-04 09:38:27 +00:00
|
|
|
app:backgroundColor="?colorTertiaryContainer"
|
|
|
|
app:textColor="?colorOnTertiaryContainer"
|
2019-04-26 08:23:26 +00:00
|
|
|
tools:ignore="RtlCompat" />
|
2018-03-30 08:26:01 +00:00
|
|
|
|
2018-02-21 10:04:48 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/textsend"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-09-11 07:56:29 +00:00
|
|
|
android:layout_alignParentStart="true"
|
2019-04-26 08:23:26 +00:00
|
|
|
android:layout_alignParentBottom="true"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
android:paddingVertical="6dp">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2019-04-26 08:23:26 +00:00
|
|
|
<LinearLayout
|
2024-04-04 09:38:27 +00:00
|
|
|
android:id="@+id/input_layout"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-09-11 07:56:29 +00:00
|
|
|
android:layout_alignParentStart="true"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:layout_centerVertical="true"
|
2019-04-26 08:23:26 +00:00
|
|
|
android:layout_toStartOf="@+id/textSendButton"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:background="@drawable/background_message_bubble"
|
2024-04-08 08:04:34 +00:00
|
|
|
android:backgroundTint="?colorTertiaryContainer"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
android:paddingVertical="8dp">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2019-04-26 08:23:26 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_input_hint"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:layout_marginBottom="8sp"
|
2019-04-26 08:23:26 +00:00
|
|
|
android:maxLines="1"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:textAppearance="?textAppearanceBodySmall"
|
2024-04-08 08:04:34 +00:00
|
|
|
android:textColor="?colorOnTertiaryContainer"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:visibility="visible"
|
|
|
|
tools:text="@string/private_message_to" />
|
2019-04-26 08:23:26 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2019-04-26 15:15:03 +00:00
|
|
|
android:id="@+id/media_preview"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:requiresFadingEdge="horizontal"
|
|
|
|
android:visibility="gone"
|
2021-01-18 17:26:46 +00:00
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
2024-04-04 09:38:27 +00:00
|
|
|
tools:listitem="@layout/item_media_preview">
|
2019-04-26 15:15:03 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
</androidx.recyclerview.widget.RecyclerView>
|
2019-04-26 15:15:03 +00:00
|
|
|
|
2019-04-26 08:23:26 +00:00
|
|
|
<eu.siacs.conversations.ui.widget.EditMessage
|
|
|
|
android:id="@+id/textinput"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:background="@android:color/transparent"
|
2019-04-26 08:23:26 +00:00
|
|
|
android:ems="10"
|
|
|
|
android:imeOptions="flagNoExtractUi|actionSend"
|
|
|
|
android:inputType="textShortMessage|textMultiLine|textCapSentences"
|
|
|
|
android:maxLines="8"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:minHeight="32dp"
|
|
|
|
android:minLines="1">
|
2019-04-26 08:23:26 +00:00
|
|
|
|
|
|
|
<requestFocus />
|
|
|
|
</eu.siacs.conversations.ui.widget.EditMessage>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2024-04-04 09:38:27 +00:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2018-02-21 10:04:48 +00:00
|
|
|
android:id="@+id/textSendButton"
|
2024-04-04 09:38:27 +00:00
|
|
|
style="?attr/materialIconButtonFilledTonalStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-09-11 07:56:29 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:layout_centerVertical="true"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:backgroundTint="?colorSurfaceContainerHigh"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:contentDescription="@string/send_message"
|
2024-04-04 09:38:27 +00:00
|
|
|
app:icon="@drawable/ic_send_24dp"
|
|
|
|
app:iconSize="32dp" />
|
2018-02-21 10:04:48 +00:00
|
|
|
</RelativeLayout>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-21 10:04:48 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/snackbar"
|
|
|
|
android:layout_width="fill_parent"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:layout_above="@+id/textsend"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginRight="8dp"
|
2019-04-26 08:23:26 +00:00
|
|
|
android:layout_marginBottom="4dp"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:background="@drawable/snackbar"
|
|
|
|
android:minHeight="48dp"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:visibility="visible">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-21 10:04:48 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/snackbar_message"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-09-11 07:56:29 +00:00
|
|
|
android:layout_alignParentStart="true"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:layout_centerVertical="true"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:layout_marginStart="24dp"
|
2018-09-11 07:56:29 +00:00
|
|
|
android:layout_toStartOf="@+id/snackbar_action"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:textColor="?colorOnSurfaceInverse"
|
|
|
|
tools:text="@string/conference_kicked" />
|
2018-02-21 10:04:48 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/snackbar_action"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-09-11 07:56:29 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:paddingLeft="24dp"
|
|
|
|
android:paddingTop="16dp"
|
2019-04-26 08:23:26 +00:00
|
|
|
android:paddingRight="24dp"
|
|
|
|
android:paddingBottom="16dp"
|
2018-02-21 10:04:48 +00:00
|
|
|
android:textAllCaps="true"
|
2024-04-04 09:38:27 +00:00
|
|
|
android:textColor="?colorOnSurfaceInverse"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:text="@string/leave" />
|
2018-02-21 10:04:48 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</layout>
|