2018-11-20 17:59:23 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-25 05:08:42 +00:00
|
|
|
android:background="@color/core_black"
|
2020-08-25 09:43:00 +00:00
|
|
|
android:theme="@style/Theme.Session.ForceDark"
|
2020-08-25 05:08:42 +00:00
|
|
|
tools:context="org.thoughtcrime.securesms.mediasend.MediaSendActivity">
|
2018-11-20 17:59:23 +00:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.ControllableViewPager
|
|
|
|
android:id="@+id/mediasend_pager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/mediasend_playback_controls_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
android:layout_gravity="top"/>
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.InputAwareLayout
|
|
|
|
android:id="@+id/mediasend_hud"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-05-09 17:11:11 +00:00
|
|
|
android:id="@+id/mediasend_caption_and_rail"
|
2018-11-20 17:59:23 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:background="@color/transparent_black_70">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
|
|
|
|
android:id="@+id/mediasend_caption"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2019-03-15 00:01:23 +00:00
|
|
|
android:paddingTop="6dp"
|
|
|
|
android:paddingBottom="6dp"
|
2018-11-20 17:59:23 +00:00
|
|
|
style="@style/Signal.Text.Body"
|
2020-01-14 05:05:31 +00:00
|
|
|
android:textSize="@dimen/medium_font_size"
|
2018-11-20 17:59:23 +00:00
|
|
|
android:maxLines="3"
|
|
|
|
android:maxLength="240"
|
|
|
|
android:hint="@string/MediaSendActivity_add_a_caption"
|
2019-03-15 00:01:23 +00:00
|
|
|
android:autoText="true"
|
|
|
|
android:inputType="textAutoCorrect|textCapSentences|textMultiLine"
|
2018-11-20 17:59:23 +00:00
|
|
|
android:background="@null"/>
|
|
|
|
|
2020-08-19 00:06:26 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2018-11-20 17:59:23 +00:00
|
|
|
android:id="@+id/mediasend_media_rail"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-15 00:01:23 +00:00
|
|
|
android:layout_marginTop="2dp"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:layout_marginStart="2dp"
|
|
|
|
android:layout_marginEnd="2dp"
|
2020-08-25 05:08:42 +00:00
|
|
|
tools:listitem="@layout/mediarail_media_item"
|
2018-11-20 17:59:23 +00:00
|
|
|
tools:layout_height="64dp"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/mediasend_compose_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-15 00:01:23 +00:00
|
|
|
android:layout_marginTop="12dp"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2019-03-15 00:01:23 +00:00
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
android:orientation="horizontal">
|
2018-11-20 17:59:23 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="8dp"
|
2018-11-20 17:59:23 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:background="@drawable/compose_background_camera">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiToggle
|
|
|
|
android:id="@+id/mediasend_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-02 02:47:56 +00:00
|
|
|
style="@style/Widget.Session.EditText.Compose"
|
2018-11-20 17:59:23 +00:00
|
|
|
android:id="@+id/mediasend_compose_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:nextFocusForward="@+id/send_button"
|
|
|
|
android:nextFocusRight="@+id/send_button"
|
|
|
|
tools:hint="Send TextSecure message" >
|
|
|
|
<requestFocus />
|
|
|
|
</org.thoughtcrime.securesms.components.ComposeText>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/mediasend_send_button_bkg"
|
|
|
|
android:layout_width="@dimen/conversation_compose_height"
|
|
|
|
android:layout_height="@dimen/conversation_compose_height"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:background="@drawable/circle_tintable"
|
|
|
|
tools:backgroundTint="@color/core_blue">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.SendButton
|
|
|
|
android:id="@+id/mediasend_send_button"
|
2020-08-25 09:43:00 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-11-20 17:59:23 +00:00
|
|
|
android:layout_height="match_parent"
|
2020-08-25 09:43:00 +00:00
|
|
|
android:scaleType="fitXY"
|
2018-11-20 17:59:23 +00:00
|
|
|
android:contentDescription="@string/conversation_activity__send"
|
|
|
|
android:src="?conversation_transport_sms_indicator"
|
|
|
|
android:background="@drawable/circle_touch_highlight_background" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/mediasend_characters_left"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-03-20 22:52:14 +00:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2019-03-15 00:01:23 +00:00
|
|
|
android:paddingBottom="12dp"
|
2018-11-20 17:59:23 +00:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"
|
|
|
|
tools:text="160/160 (1)" />
|
|
|
|
|
|
|
|
<ViewStub
|
|
|
|
android:id="@+id/mediasend_emoji_drawer_stub"
|
|
|
|
android:layout="@layout/scribble_fragment_emojidrawer_stub"
|
|
|
|
android:inflatedId="@+id/emoji_drawer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.InputAwareLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|