2012-07-19 14:22:03 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-07-02 16:47:03 -07:00
|
|
|
|
2015-06-08 11:07:46 -07:00
|
|
|
<org.thoughtcrime.securesms.components.camera.QuickAttachmentDrawer
|
2015-04-16 01:38:33 -04:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-07-13 15:45:14 -07:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2015-04-16 01:38:33 -04:00
|
|
|
android:id="@+id/quick_attachment_drawer"
|
|
|
|
android:layout_width="match_parent"
|
2015-07-10 10:59:59 -07:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@color/black">
|
2015-04-16 01:38:33 -04:00
|
|
|
|
2015-07-13 15:45:14 -07:00
|
|
|
<org.thoughtcrime.securesms.components.KeyboardAwareLinearLayout
|
|
|
|
android:id="@+id/layout_container"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2015-07-02 16:47:03 -07:00
|
|
|
<RelativeLayout android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical"
|
2015-07-10 10:59:59 -07:00
|
|
|
android:background="?conversation_background"
|
2015-07-12 14:01:38 -04:00
|
|
|
android:paddingTop="?attr/actionBarSize"
|
2015-07-02 16:47:03 -07:00
|
|
|
android:gravity="bottom">
|
2012-07-19 14:22:03 -07:00
|
|
|
|
2014-12-15 12:25:55 -08: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 14:22:03 -07:00
|
|
|
|
2013-06-27 20:57:27 -07:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:id="@id/bottom_container"
|
2012-07-19 14:22:03 -07:00
|
|
|
android:layout_width="fill_parent"
|
2012-09-09 16:10:46 -07:00
|
|
|
android:layout_height="wrap_content"
|
2014-03-04 11:47:27 +02:00
|
|
|
android:orientation="vertical">
|
2012-07-19 14:22:03 -07:00
|
|
|
|
2013-06-27 20:57:27 -07:00
|
|
|
<ScrollView android:layout_width="fill_parent"
|
2014-05-28 20:53:34 -07:00
|
|
|
android:layout_height="0dp"
|
2013-06-27 20:57:27 -07:00
|
|
|
android:layout_weight="1">
|
2015-06-17 11:54:12 -07:00
|
|
|
<FrameLayout
|
2013-06-27 20:57:27 -07:00
|
|
|
android:id="@+id/attachment_editor"
|
2015-06-17 11:54:12 -07:00
|
|
|
android:layout_width="wrap_content"
|
2013-06-27 20:57:27 -07:00
|
|
|
android:layout_height="wrap_content"
|
2015-06-17 11:54:12 -07:00
|
|
|
android:layout_gravity="center_horizontal"
|
2013-06-27 20:57:27 -07:00
|
|
|
android:visibility="gone">
|
|
|
|
|
2015-06-17 11:54:12 -07:00
|
|
|
<FrameLayout
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingTop="10dp"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent">
|
2013-06-27 20:57:27 -07:00
|
|
|
|
2015-06-17 11:54:12 -07:00
|
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
|
|
|
android:id="@+id/attachment_thumbnail"
|
2015-06-26 20:14:51 -07:00
|
|
|
android:layout_width="230dp"
|
|
|
|
android:layout_height="150dp"
|
2015-06-17 11:54:12 -07:00
|
|
|
app:riv_corner_radius="3dp"
|
|
|
|
android:contentDescription="@string/conversation_activity__attachment_thumbnail"/>
|
|
|
|
</FrameLayout>
|
2013-06-27 20:57:27 -07:00
|
|
|
|
2015-06-17 11:54:12 -07:00
|
|
|
<ImageView android:id="@+id/remove_image_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/conversation_attachment_close_circle"
|
|
|
|
android:layout_gravity="top|left"/>
|
2013-06-27 20:57:27 -07:00
|
|
|
|
2015-06-17 11:54:12 -07:00
|
|
|
</FrameLayout>
|
2013-06-27 20:57:27 -07:00
|
|
|
</ScrollView>
|
2012-07-19 14:22:03 -07:00
|
|
|
|
2015-06-30 17:45:39 -07:00
|
|
|
<LinearLayout android:id="@+id/bottom_panel"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="5dp">
|
2015-06-01 16:51:14 -07:00
|
|
|
|
2015-06-30 17:45:39 -07:00
|
|
|
<LinearLayout android:id="@+id/compose_bubble"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="@drawable/sent_bubble">
|
2012-07-19 14:22:03 -07:00
|
|
|
|
2015-06-30 17:45:39 -07:00
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiToggle
|
2013-06-27 20:57:27 -07:00
|
|
|
android:id="@+id/emoji_toggle"
|
2015-06-30 17:45:39 -07:00
|
|
|
android:layout_width="37dp"
|
|
|
|
android:layout_height="37dp"
|
2015-05-18 21:26:09 -04:00
|
|
|
android:layout_gravity="bottom"
|
2014-02-25 04:49:08 +02:00
|
|
|
android:background="@drawable/touch_highlight_background"
|
2015-06-30 17:45:39 -07:00
|
|
|
android:contentDescription="@string/conversation_activity__emoji_toggle_description" />
|
2013-06-27 20:57:27 -07:00
|
|
|
|
2015-06-30 17:45:39 -07:00
|
|
|
<org.thoughtcrime.securesms.components.ComposeText
|
|
|
|
style="@style/ComposeEditText"
|
2013-03-05 19:32:15 -08:00
|
|
|
android:id="@+id/embedded_text_editor"
|
2014-05-28 20:53:34 -07:00
|
|
|
android:layout_width="0dp"
|
2013-03-05 19:32:15 -08:00
|
|
|
android:layout_height="wrap_content"
|
2015-06-30 17:45:39 -07:00
|
|
|
android:minHeight="37dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
2015-02-17 17:55:18 -08:00
|
|
|
android:nextFocusForward="@+id/send_button"
|
2013-03-05 19:32:15 -08:00
|
|
|
android:nextFocusRight="@+id/send_button"
|
2015-06-30 17:45:39 -07:00
|
|
|
tools:hint="Send TextSecure message" />
|
2013-03-05 19:32:15 -08:00
|
|
|
|
2015-06-08 11:07:46 -07:00
|
|
|
<org.thoughtcrime.securesms.components.camera.HidingImageButton
|
|
|
|
android:id="@+id/quick_attachment_toggle"
|
|
|
|
android:layout_width="37dp"
|
|
|
|
android:layout_height="37dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:src="?quick_camera_icon"
|
|
|
|
android:background="@drawable/touch_highlight_background"
|
|
|
|
android:contentDescription="@string/conversation_activity__quick_attachment_drawer_toggle_description"
|
2015-07-10 18:45:55 -07:00
|
|
|
android:visibility="gone"
|
|
|
|
android:padding="10dp" />
|
2015-06-08 11:07:46 -07:00
|
|
|
</LinearLayout>
|
2015-04-16 01:38:33 -04:00
|
|
|
|
2015-05-18 10:26:32 -07:00
|
|
|
<org.thoughtcrime.securesms.components.AnimatingToggle
|
2015-06-30 17:45:39 -07:00
|
|
|
android:id="@+id/button_toggle"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:background="@drawable/circle_tintable"
|
|
|
|
android:layout_gravity="bottom">
|
2015-05-20 16:55:00 -07:00
|
|
|
|
2015-05-18 10:26:32 -07:00
|
|
|
<ImageButton
|
2015-06-30 17:45:39 -07:00
|
|
|
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:src="@drawable/ic_attach_white_24dp"
|
|
|
|
android:contentDescription="@string/ConversationActivity_add_attachment"
|
|
|
|
android:nextFocusLeft="@+id/embedded_text_editor" />
|
2015-05-18 10:26:32 -07:00
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.SendButton
|
2015-06-30 17:45:39 -07:00
|
|
|
android:id="@+id/send_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
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" />
|
2015-05-18 10:26:32 -07:00
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.components.AnimatingToggle>
|
2013-06-27 20:57:27 -07:00
|
|
|
|
2012-07-19 14:22:03 -07:00
|
|
|
</LinearLayout>
|
2013-06-27 20:57:27 -07:00
|
|
|
|
2015-06-09 07:37:20 -07:00
|
|
|
<Button android:id="@+id/unblock_button"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="20dp"
|
2015-06-13 22:43:45 +02:00
|
|
|
android:text="@string/ConversationActivity_unblock"
|
2015-06-09 07:37:20 -07:00
|
|
|
android:visibility="gone"/>
|
|
|
|
|
2013-06-27 20:57:27 -07:00
|
|
|
<TextView android:id="@+id/space_left"
|
|
|
|
android:paddingLeft="5dip"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2014-01-08 12:29:05 -10:00
|
|
|
android:visibility="gone"
|
2013-06-27 20:57:27 -07:00
|
|
|
android:text="160/160 (1)" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2012-07-19 14:22:03 -07:00
|
|
|
</RelativeLayout>
|
2015-07-13 15:45:14 -07:00
|
|
|
|
|
|
|
<ViewStub android:id="@+id/emoji_drawer_stub"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:inflatedId="@+id/emoji_drawer"
|
|
|
|
android:layout="@layout/emoji_drawer_stub" />
|
2015-07-02 16:47:03 -07:00
|
|
|
</org.thoughtcrime.securesms.components.KeyboardAwareLinearLayout>
|
2015-07-13 15:45:14 -07:00
|
|
|
</org.thoughtcrime.securesms.components.camera.QuickAttachmentDrawer>
|