2012-07-19 21:22:03 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2012-07-31 23:27:58 +00:00
|
|
|
|
2012-07-19 21:22:03 +00:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
2013-06-28 03:57:27 +00:00
|
|
|
android:id="@+id/layout_container"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:gravity="bottom">
|
2012-07-19 21:22:03 +00:00
|
|
|
|
2014-12-15 20:25:55 +00:00
|
|
|
<FrameLayout android:id="@+id/fragment_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_above="@+id/bottom_container" />
|
2012-07-19 21:22:03 +00:00
|
|
|
|
2013-06-28 03:57:27 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:id="@id/bottom_container"
|
2012-07-19 21:22:03 +00:00
|
|
|
android:layout_width="fill_parent"
|
2012-09-09 23:10:46 +00:00
|
|
|
android:layout_height="wrap_content"
|
2014-03-04 09:47:27 +00:00
|
|
|
android:orientation="vertical">
|
2012-07-19 21:22:03 +00:00
|
|
|
|
2013-06-28 03:57:27 +00:00
|
|
|
<ScrollView android:layout_width="fill_parent"
|
2014-05-29 03:53:34 +00:00
|
|
|
android:layout_height="0dp"
|
2013-06-28 03:57:27 +00:00
|
|
|
android:layout_weight="1">
|
2012-07-19 21:22:03 +00:00
|
|
|
<LinearLayout
|
2013-06-28 03:57:27 +00:00
|
|
|
android:id="@+id/attachment_editor"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
2015-03-31 22:44:41 +00:00
|
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
2013-06-28 03:57:27 +00:00
|
|
|
android:id="@+id/attachment_thumbnail"
|
2014-05-29 03:53:34 +00:00
|
|
|
android:layout_width="0dp"
|
2013-06-28 03:57:27 +00:00
|
|
|
android:layout_height="150dip"
|
|
|
|
android:layout_weight="1"
|
2015-03-03 18:57:44 +00:00
|
|
|
android:contentDescription="@string/conversation_activity__attachment_thumbnail"/>
|
2013-06-28 03:57:27 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/remove_image_button"
|
|
|
|
style="?android:attr/buttonStyleSmall"
|
|
|
|
android:layout_width="100dip"
|
|
|
|
android:layout_height="50dip"
|
|
|
|
android:text="@string/conversation_activity__remove" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
2012-07-19 21:22:03 +00:00
|
|
|
|
2015-06-01 23:51:14 +00:00
|
|
|
<View android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
|
|
|
android:background="?conversation_editor_background" />
|
|
|
|
|
2013-06-28 03:57:27 +00:00
|
|
|
<LinearLayout
|
2012-07-19 21:22:03 +00:00
|
|
|
android:id="@+id/bottom_panel"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-01 23:51:14 +00:00
|
|
|
android:orientation="horizontal">
|
2012-07-19 21:22:03 +00:00
|
|
|
|
2015-05-06 20:53:55 +00:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiToggle
|
2013-06-28 03:57:27 +00:00
|
|
|
android:id="@+id/emoji_toggle"
|
|
|
|
android:layout_width="wrap_content"
|
2015-05-20 23:55:00 +00:00
|
|
|
android:layout_height="44dp"
|
2015-05-19 01:26:09 +00:00
|
|
|
android:layout_gravity="bottom"
|
2014-02-25 02:49:08 +00:00
|
|
|
android:background="@drawable/touch_highlight_background"
|
2014-08-20 02:04:32 +00:00
|
|
|
android:contentDescription="@string/conversation_activity__emoji_toggle_description"
|
2013-06-28 03:57:27 +00:00
|
|
|
android:padding="10dp"/>
|
|
|
|
|
2015-03-11 21:23:45 +00:00
|
|
|
<org.thoughtcrime.securesms.components.ComposeText
|
2013-03-06 03:32:15 +00:00
|
|
|
android:id="@+id/embedded_text_editor"
|
2014-05-29 03:53:34 +00:00
|
|
|
android:layout_width="0dp"
|
2013-03-06 03:32:15 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1.0"
|
|
|
|
android:autoText="true"
|
|
|
|
android:capitalize="sentences"
|
2015-02-25 22:53:32 +00:00
|
|
|
android:background="@drawable/compose_background"
|
2015-01-06 00:44:56 +00:00
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:paddingBottom="12dp"
|
2014-01-16 08:36:05 +00:00
|
|
|
android:paddingRight="0dp"
|
2015-01-06 00:44:56 +00:00
|
|
|
android:paddingLeft="0dp"
|
2015-01-04 10:29:53 +00:00
|
|
|
android:imeOptions="actionSend|flagNoEnterAction|flagNoExtractUi"
|
2015-05-19 18:48:37 +00:00
|
|
|
android:inputType="textAutoCorrect|textCapSentences|textMultiLine"
|
2015-03-11 21:23:45 +00:00
|
|
|
android:maxLength="2000"
|
2013-03-06 03:32:15 +00:00
|
|
|
android:maxLines="4"
|
2015-02-18 01:55:18 +00:00
|
|
|
android:nextFocusForward="@+id/send_button"
|
2013-03-06 03:32:15 +00:00
|
|
|
android:nextFocusRight="@+id/send_button"
|
2014-08-20 02:04:32 +00:00
|
|
|
android:contentDescription="@string/conversation_activity__compose_description"
|
2013-06-21 18:56:59 +00:00
|
|
|
android:textColor="?conversation_editor_text_color" />
|
2013-03-06 03:32:15 +00:00
|
|
|
|
2015-05-18 17:26:32 +00:00
|
|
|
<org.thoughtcrime.securesms.components.AnimatingToggle
|
|
|
|
android:id="@+id/button_toggle"
|
2015-05-20 21:18:39 +00:00
|
|
|
android:layout_width="46dp"
|
2015-05-19 01:26:09 +00:00
|
|
|
android:layout_height="44dp"
|
|
|
|
android:layout_gravity="bottom">
|
2015-05-20 23:55:00 +00:00
|
|
|
|
2015-05-18 17:26:32 +00:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/attach_button"
|
2015-05-20 21:18:39 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-05-20 23:55:00 +00:00
|
|
|
android:layout_height="match_parent"
|
2015-05-20 21:18:39 +00:00
|
|
|
android:layout_gravity="center"
|
2015-05-18 17:26:32 +00:00
|
|
|
android:background="@drawable/touch_highlight_background"
|
2015-05-20 21:18:39 +00:00
|
|
|
android:src="?conversation_attach"
|
2015-05-18 17:26:32 +00:00
|
|
|
android:contentDescription="@string/ConversationActivity_add_attachment"
|
2015-05-20 21:18:39 +00:00
|
|
|
android:nextFocusLeft="@+id/embedded_text_editor" />
|
2015-05-18 17:26:32 +00:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.SendButton
|
|
|
|
android:id="@+id/send_button"
|
2015-05-20 21:18:39 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-05-20 23:55:00 +00:00
|
|
|
android:layout_height="match_parent"
|
2015-05-18 17:26:32 +00:00
|
|
|
android:background="@drawable/touch_highlight_background"
|
|
|
|
android:contentDescription="@string/conversation_activity__send"
|
|
|
|
android:nextFocusLeft="@+id/embedded_text_editor"
|
|
|
|
android:src="?conversation_transport_sms_indicator"
|
|
|
|
android:focusable="true"
|
|
|
|
android:clickable="false"
|
|
|
|
android:enabled="false" />
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.AnimatingToggle>
|
2013-06-28 03:57:27 +00:00
|
|
|
|
2012-07-19 21:22:03 +00:00
|
|
|
</LinearLayout>
|
2013-06-28 03:57:27 +00:00
|
|
|
|
2015-06-09 14:37:20 +00:00
|
|
|
<Button android:id="@+id/unblock_button"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="20dp"
|
|
|
|
android:text="Unblock"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
2013-06-28 03:57:27 +00:00
|
|
|
<TextView android:id="@+id/space_left"
|
|
|
|
android:paddingLeft="5dip"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2014-01-08 22:29:05 +00:00
|
|
|
android:visibility="gone"
|
2013-06-28 03:57:27 +00:00
|
|
|
android:text="160/160 (1)" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2012-07-19 21:22:03 +00:00
|
|
|
</RelativeLayout>
|
2013-06-28 03:57:27 +00:00
|
|
|
|
2015-05-29 17:54:59 +00:00
|
|
|
<ViewStub android:id="@+id/emoji_drawer_stub"
|
|
|
|
android:inflatedId="@+id/emoji_drawer"
|
|
|
|
android:layout="@layout/emoji_drawer_stub"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2013-06-28 03:57:27 +00:00
|
|
|
|
2012-07-19 21:22:03 +00:00
|
|
|
</LinearLayout>
|