2015-11-18 14:52:26 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<org.thoughtcrime.securesms.components.InputPanel
|
2019-04-17 10:21:30 -04: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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
|
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" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2015-11-18 14:52:26 -08:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-04-17 10:21:30 -04:00
|
|
|
android:clickable="true"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
2015-11-18 14:52:26 -08:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
2019-03-20 15:52:14 -07:00
|
|
|
android:paddingStart="16dp"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:paddingTop="6dp"
|
2019-04-17 10:21:30 -04:00
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingBottom="6dp">
|
2018-06-26 10:27:44 -07:00
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="0dp"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_height="wrap_content"
|
2019-04-17 10:21:30 -04:00
|
|
|
android:layout_weight="1"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:clipChildren="false"
|
2019-04-17 10:21:30 -04:00
|
|
|
android:clipToPadding="false">
|
2018-02-07 14:01:37 -08:00
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/compose_bubble"
|
2018-04-26 17:43:35 -07:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-04-17 10:21:30 -04:00
|
|
|
android:background="?attr/conversation_input_background"
|
2018-04-26 17:43:35 -07:00
|
|
|
android:clipChildren="false"
|
2019-04-17 10:21:30 -04:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.QuoteView
|
|
|
|
android:id="@+id/quote_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginEnd="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_marginTop="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:linkpreview_type="compose" />
|
2018-02-07 14:01:37 -08:00
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
<FrameLayout
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_width="match_parent"
|
2018-04-26 17:43:35 -07:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2018-02-07 14:01:37 -08:00
|
|
|
android:layout_height="wrap_content"
|
2015-11-18 14:52:26 -08:00
|
|
|
android:clipChildren="false"
|
2019-04-17 10:21:30 -04:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:paddingStart="8dp">
|
2015-11-18 14:52:26 -08:00
|
|
|
|
2019-04-17 10:21:30 -04: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:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/conversation_activity__emoji_toggle_description"
|
|
|
|
android:paddingEnd="6dp" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/conversation_compose_height" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ComposeText
|
|
|
|
android:id="@+id/embedded_text_editor"
|
|
|
|
style="@style/ComposeEditText"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:nextFocusRight="@+id/send_button"
|
|
|
|
android:nextFocusForward="@+id/send_button"
|
|
|
|
tools:hint="Send TextSecure message"
|
|
|
|
tools:visibility="invisible">
|
|
|
|
|
|
|
|
<requestFocus />
|
|
|
|
</org.thoughtcrime.securesms.components.ComposeText>
|
|
|
|
|
|
|
|
<FrameLayout
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2018-02-07 14:01:37 -08:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
<org.thoughtcrime.securesms.components.HidingLinearLayout
|
|
|
|
android:id="@+id/quick_attachment_toggle"
|
2018-06-26 10:27:44 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2019-04-17 10:21:30 -04:00
|
|
|
android:layout_gravity="right|end"
|
2018-08-10 12:18:02 -04:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/quick_camera_toggle"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/conversation_activity__quick_attachment_drawer_toggle_camera_description"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:tint="?compose_icon_tint"
|
|
|
|
app:srcCompat="@drawable/ic_camera_filled_24" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.MicrophoneRecorderView
|
|
|
|
android:id="@+id/recorder_view"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
|
|
|
|
<include layout="@layout/microphone_recorder_view" />
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.MicrophoneRecorderView>
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.HidingLinearLayout>
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.HidingLinearLayout
|
|
|
|
android:id="@+id/inline_attachment_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="right|end"
|
|
|
|
android:visibility="gone">
|
2018-08-10 12:18:02 -04:00
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/inline_attachment_button"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="@dimen/conversation_compose_height"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:tint="?attr/conversation_input_inline_attach_icon_tint"
|
|
|
|
app:srcCompat="@drawable/ic_plus_24" />
|
2018-08-10 12:18:02 -04:00
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
</org.thoughtcrime.securesms.components.HidingLinearLayout>
|
2018-08-10 12:18:02 -04:00
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
</FrameLayout>
|
2018-08-10 12:18:02 -04:00
|
|
|
|
2019-04-17 10:21:30 -04:00
|
|
|
</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_gravity="bottom"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:background="@drawable/circle_tintable">
|
|
|
|
|
|
|
|
<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"
|
|
|
|
android:contentDescription="@string/ConversationActivity_add_attachment"
|
|
|
|
android:nextFocusLeft="@+id/embedded_text_editor"
|
|
|
|
android:tint="@color/core_white"
|
|
|
|
app:srcCompat="@drawable/ic_plus_24" />
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.SendButton
|
|
|
|
android:id="@+id/send_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background"
|
|
|
|
android:contentDescription="@string/conversation_activity__send"
|
|
|
|
android:nextFocusLeft="@+id/embedded_text_editor"
|
|
|
|
android:paddingStart="11dp"
|
|
|
|
android:paddingTop="6dp"
|
|
|
|
android:paddingEnd="6dp"
|
|
|
|
android:paddingBottom="6dp"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:src="?conversation_transport_sms_indicator" />
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.AnimatingToggle>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2015-11-18 14:52:26 -08:00
|
|
|
</org.thoughtcrime.securesms.components.InputPanel>
|