mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 16:07:30 +00:00
9f804047f5
Saves a good amount of inflation time in onCreate for new conversations. Closes #2585 Closes #2636 // FREEBIE
132 lines
6.1 KiB
XML
132 lines
6.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:background="?conversation_background"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
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">
|
|
|
|
<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" />
|
|
|
|
<LinearLayout
|
|
android:layout_alignParentBottom="true"
|
|
android:id="@id/bottom_container"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<ScrollView android:layout_width="fill_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
<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="0dp"
|
|
android:layout_height="150dip"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/conversation_activity__attachment_thumbnail"/>
|
|
|
|
<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>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/bottom_panel"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:background="?conversation_editor_background">
|
|
|
|
<org.thoughtcrime.securesms.components.EmojiToggle
|
|
android:id="@+id/emoji_toggle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="@drawable/touch_highlight_background"
|
|
android:contentDescription="@string/conversation_activity__emoji_toggle_description"
|
|
android:padding="10dp"/>
|
|
|
|
<org.thoughtcrime.securesms.components.ComposeText
|
|
android:id="@+id/embedded_text_editor"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.0"
|
|
android:autoText="true"
|
|
android:capitalize="sentences"
|
|
android:background="@drawable/compose_background"
|
|
android:paddingRight="0dp"
|
|
android:imeOptions="actionSend|flagNoEnterAction|flagNoExtractUi"
|
|
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
|
|
android:maxLength="2000"
|
|
android:maxLines="4"
|
|
android:nextFocusForward="@+id/send_button"
|
|
android:nextFocusRight="@+id/send_button"
|
|
android:contentDescription="@string/conversation_activity__compose_description"
|
|
android:textColor="?conversation_editor_text_color" />
|
|
|
|
<org.thoughtcrime.securesms.components.SendButton
|
|
android:id="@+id/send_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="@drawable/touch_highlight_background"
|
|
android:contentDescription="@string/conversation_activity__send"
|
|
android:nextFocusLeft="@+id/embedded_text_editor"
|
|
android:padding="12dp"
|
|
android:src="?conversation_send_button_sms_insecure"
|
|
android:focusable="true"
|
|
android:clickable="false"
|
|
android:enabled="false" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView android:id="@+id/space_left"
|
|
android:paddingLeft="5dip"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:text="160/160 (1)" />
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<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" />
|
|
|
|
</LinearLayout>
|