2012-07-19 14:22:03 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2012-07-31 16:27:58 -07:00
|
|
|
|
2012-07-19 14:22:03 -07:00
|
|
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<org.thoughtcrime.securesms.components.RecipientsPanel
|
|
|
|
android:id="@+id/recipients"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/layout_container"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:orientation="vertical"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:background="?conversation_background"
|
2012-07-19 14:22:03 -07:00
|
|
|
android:gravity="bottom">
|
|
|
|
|
|
|
|
<fragment
|
|
|
|
android:id="@+id/fragment_content"
|
|
|
|
android:name="org.thoughtcrime.securesms.ConversationFragment"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_above="@+id/bottom_container" />
|
|
|
|
|
|
|
|
<ScrollView android:id="@id/bottom_container"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="fill_parent"
|
2012-09-09 16:10:46 -07:00
|
|
|
android:layout_height="wrap_content"
|
2012-07-19 14:22:03 -07:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingBottom="5dip"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:background="?conversation_background">
|
2012-07-19 14:22:03 -07:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/attachment_editor"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/attachment_thumbnail"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="150dip"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:contentDescription="Attachment Thumbnail"/>
|
2012-07-19 14:22:03 -07: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"
|
2012-09-19 19:56:04 -07:00
|
|
|
android:text="@string/conversation_activity__remove" />
|
2012-07-19 14:22:03 -07:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2013-06-21 11:56:59 -07:00
|
|
|
<View android:background="?conversation_editor_background"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp" />
|
2012-07-19 14:22:03 -07:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/bottom_panel"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2013-03-05 19:32:15 -08:00
|
|
|
android:orientation="horizontal"
|
2012-07-19 14:22:03 -07:00
|
|
|
android:paddingLeft="5dip"
|
2013-03-05 19:32:15 -08:00
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:paddingTop="0dp" >
|
2012-07-19 14:22:03 -07:00
|
|
|
|
|
|
|
<EditText
|
2013-03-05 19:32:15 -08:00
|
|
|
android:id="@+id/embedded_text_editor"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dip"
|
|
|
|
android:layout_weight="1.0"
|
|
|
|
android:autoText="true"
|
|
|
|
android:capitalize="sentences"
|
|
|
|
android:hint="@string/conversation_activity__type_message"
|
|
|
|
android:imeOptions="actionSend|flagNoEnterAction"
|
|
|
|
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
|
|
|
|
android:maxLength="1000"
|
|
|
|
android:maxLines="4"
|
|
|
|
android:nextFocusRight="@+id/send_button"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:textColor="?conversation_editor_text_color" />
|
2013-03-05 19:32:15 -08:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/send_button"
|
2012-07-19 14:22:03 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
2013-03-05 19:32:15 -08:00
|
|
|
android:background="@drawable/send_button_background"
|
|
|
|
android:contentDescription="@string/conversation_activity__send"
|
2012-07-19 14:22:03 -07:00
|
|
|
android:nextFocusLeft="@+id/embedded_text_editor"
|
2013-03-05 19:32:15 -08:00
|
|
|
android:padding="12dp"
|
2013-06-21 11:56:59 -07:00
|
|
|
android:src="?conversation_send_button"
|
2013-03-05 19:32:15 -08:00
|
|
|
android:clickable="false"
|
2013-03-15 07:47:09 -07:00
|
|
|
android:enabled="false" />
|
2013-03-05 19:32:15 -08:00
|
|
|
|
2013-06-21 11:56:59 -07:00
|
|
|
|
2012-07-19 14:22:03 -07:00
|
|
|
</LinearLayout>
|
2013-06-21 11:56:59 -07:00
|
|
|
<TextView android:id="@+id/space_left"
|
|
|
|
android:paddingLeft="5dip"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="160/160 (1)" />
|
2012-07-19 14:22:03 -07:00
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|