anotherim/src/main/res/layout/fragment_conversation.xml

164 lines
7.2 KiB
XML
Raw Normal View History

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