2015-11-18 22:52:26 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<org.thoughtcrime.securesms.components.InputPanel
|
2019-04-17 14:21:30 +00:00
|
|
|
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:id="@+id/bottom_panel"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:layout_width="fill_parent"
|
2019-04-17 14:21:30 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:clickable="true"
|
2020-01-10 05:35:32 +00:00
|
|
|
android:background="@color/compose_view_background"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingTop="6dp"
|
|
|
|
android:paddingBottom="6dp"
|
2019-04-17 14:21:30 +00:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
|
2020-08-19 00:06:26 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2019-04-17 14:21:30 +00:00
|
|
|
android:id="@+id/input_panel_sticker_suggestion"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="90dp"
|
|
|
|
android:background="?emoji_tab_strip_background"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="0dp"
|
2015-11-18 22:52:26 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:layout_weight="1"
|
2019-04-17 14:21:30 +00:00
|
|
|
android:clipChildren="false"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:clipToPadding="false">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/compose_bubble"
|
|
|
|
android:layout_width="match_parent"
|
2018-06-26 17:27:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:background="?attr/conversation_input_background"
|
2018-06-26 17:27:44 +00:00
|
|
|
android:clipChildren="false"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical">
|
2018-02-07 22:01:37 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<org.thoughtcrime.securesms.components.QuoteView
|
|
|
|
android:id="@+id/quote_view"
|
2018-04-27 00:43:35 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:message_type="preview"
|
|
|
|
app:quote_colorPrimary="?attr/conversation_item_sent_text_primary_color"
|
|
|
|
app:quote_colorSecondary="?attr/conversation_item_sent_text_primary_color"
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.LinkPreviewView
|
|
|
|
android:id="@+id/link_preview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:linkpreview_type="compose" />
|
2019-04-17 14:21:30 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
2018-02-07 22:01:37 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<LinearLayout
|
2018-06-26 17:27:44 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-04-27 00:43:35 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:paddingStart="10dp"
|
2018-04-27 00:43:35 +00:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiToggle
|
|
|
|
android:id="@+id/emoji_toggle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/conversation_compose_height"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:paddingStart="4dp"
|
|
|
|
android:paddingEnd="6dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/conversation_activity__emoji_toggle_description" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/conversation_compose_height" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ComposeText
|
2020-09-01 08:47:50 +00:00
|
|
|
style="@style/Widget.EditText.Compose"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:id="@+id/embedded_text_editor"
|
|
|
|
android:layout_width="0dp"
|
2018-02-07 22:01:37 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:nextFocusForward="@+id/send_button"
|
|
|
|
android:nextFocusRight="@+id/send_button"
|
|
|
|
tools:visibility="invisible"
|
|
|
|
tools:hint="Send TextSecure message" >
|
|
|
|
<requestFocus />
|
2019-10-10 02:53:02 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
</org.thoughtcrime.securesms.components.ComposeText>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2015-11-18 22:52:26 +00:00
|
|
|
android:clipChildren="false"
|
2019-10-16 23:39:59 +00:00
|
|
|
android:clipToPadding="false">
|
2015-11-18 22:52:26 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<org.thoughtcrime.securesms.components.HidingLinearLayout
|
|
|
|
android:id="@+id/quick_attachment_toggle"
|
2018-06-26 17:27:44 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:layout_gravity="right|end"
|
2018-02-07 22:01:37 +00:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/quick_camera_toggle"
|
2018-06-26 17:27:44 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:src="?quick_camera_icon"
|
|
|
|
android:paddingStart="6dp"
|
|
|
|
android:paddingEnd="6dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
2019-10-20 23:52:53 +00:00
|
|
|
android:contentDescription="@string/conversation_activity__quick_attachment_drawer_toggle_camera_description" />
|
2019-08-08 01:29:40 +00:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.MicrophoneRecorderView
|
|
|
|
android:id="@+id/recorder_view"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_width="36dp"
|
2020-07-17 02:10:25 +00:00
|
|
|
android:layout_gravity="center"
|
2018-08-10 16:18:02 +00:00
|
|
|
android:clipChildren="false"
|
2019-10-23 03:01:39 +00:00
|
|
|
android:clipToPadding="false">
|
2018-08-10 16:18:02 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<include layout="@layout/microphone_recorder_view" />
|
2019-04-17 14:21:30 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
</org.thoughtcrime.securesms.components.MicrophoneRecorderView>
|
2019-04-17 14:21:30 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
</org.thoughtcrime.securesms.components.HidingLinearLayout>
|
2019-04-17 14:21:30 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<org.thoughtcrime.securesms.components.HidingLinearLayout
|
|
|
|
android:id="@+id/inline_attachment_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2019-10-20 23:52:53 +00:00
|
|
|
android:layout_gravity="right|end">
|
2019-04-17 14:21:30 +00:00
|
|
|
|
2019-08-08 01:29:40 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/inline_attachment_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/conversation_compose_height"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:src="@drawable/ic_add_white_24dp"
|
|
|
|
android:tint="?attr/conversation_input_inline_attach_icon_tint"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"/>
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.HidingLinearLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<include layout="@layout/recording_layout" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.AnimatingToggle
|
|
|
|
android:id="@+id/button_toggle"
|
|
|
|
android:layout_width="@dimen/conversation_compose_height"
|
|
|
|
android:layout_height="@dimen/conversation_compose_height"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_gravity="bottom">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/attach_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background"
|
2020-01-10 05:35:32 +00:00
|
|
|
android:src="@drawable/ic_circle_plus"
|
2020-08-27 02:30:27 +00:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:padding="4dp"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:contentDescription="@string/ConversationActivity_add_attachment"
|
|
|
|
android:nextFocusLeft="@+id/embedded_text_editor" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.SendButton
|
|
|
|
android:id="@+id/send_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-20 10:36:56 +00:00
|
|
|
android:scaleType="fitXY"
|
2019-08-08 01:29:40 +00:00
|
|
|
android:contentDescription="@string/conversation_activity__send"
|
|
|
|
android:nextFocusLeft="@+id/embedded_text_editor"
|
|
|
|
android:src="?conversation_transport_sms_indicator"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background" />
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.AnimatingToggle>
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.InputPanel>
|