fragment_conversation.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3    xmlns:tools="http://schemas.android.com/tools"
  4    android:layout_width="match_parent"
  5    android:layout_height="match_parent"
  6    android:background="@color/secondarybackground" >
  7
  8   
  9
 10    <ListView
 11        android:id="@+id/messages_view"
 12        android:layout_width="fill_parent"
 13        android:layout_height="wrap_content"
 14        android:layout_above="@+id/snackbar"
 15        android:layout_alignParentLeft="true"
 16        android:layout_alignParentTop="true"
 17        android:background="@color/secondarybackground"
 18        android:divider="@null"
 19        android:dividerHeight="0dp"
 20        android:listSelector="@android:color/transparent"
 21        android:stackFromBottom="true"
 22        android:transcriptMode="normal"
 23        tools:listitem="@layout/message_sent" >
 24    </ListView>
 25
 26         <RelativeLayout
 27             android:id="@+id/textsend"
 28             android:layout_width="fill_parent"
 29             android:layout_height="wrap_content"
 30             android:layout_alignParentBottom="true"
 31             android:layout_alignParentLeft="true"
 32             android:background="@color/primarybackground" >
 33
 34        <eu.siacs.conversations.ui.EditMessage
 35            android:id="@+id/textinput"
 36            android:layout_width="wrap_content"
 37            android:layout_height="wrap_content"
 38            android:layout_alignParentLeft="true"
 39            android:layout_toLeftOf="@+id/textSendButton"
 40            android:background="@color/primarybackground"
 41            android:ems="10"
 42            android:inputType="textShortMessage|textMultiLine|textCapSentences"
 43            android:minHeight="48dp"
 44            android:minLines="1"
 45            android:paddingBottom="12dp"
 46            android:paddingLeft="8dp"
 47            android:paddingRight="8dp"
 48            android:paddingTop="12dp"
 49            android:textColor="@color/primarytext"
 50			android:imeOptions="flagNoExtractUi">
 51            <requestFocus />
 52        </eu.siacs.conversations.ui.EditMessage>
 53
 54        <ImageButton
 55            android:id="@+id/textSendButton"
 56            android:layout_width="48dp"
 57            android:layout_height="48dp"
 58            android:layout_alignParentRight="true"
 59            android:layout_centerVertical="true"
 60            android:background="?android:selectableItemBackground"
 61            android:src="@drawable/ic_action_send_now" />
 62    </RelativeLayout>
 63
 64         <RelativeLayout
 65             android:id="@+id/snackbar"
 66             android:layout_width="fill_parent"
 67             android:layout_height="wrap_content"
 68             android:layout_above="@+id/textsend"
 69             android:background="@drawable/snackbar"
 70             android:minHeight="48dp"
 71             android:layout_marginLeft="8dp"
 72             android:layout_marginRight="8dp"
 73             android:layout_marginBottom="4dp"
 74             android:visibility="gone" >
 75
 76             <TextView
 77                 android:id="@+id/snackbar_message"
 78                 android:layout_width="wrap_content"
 79                 android:layout_height="wrap_content"
 80                 android:layout_alignParentLeft="true"
 81                 android:layout_centerVertical="true"
 82                 android:paddingLeft="24dp"
 83                 android:textColor="@color/ondarktext"
 84                 android:textSize="?attr/TextSizeBody" 
 85                 android:layout_toLeftOf="@+id/snackbar_action"/>
 86
 87             <TextView
 88                 android:id="@+id/snackbar_action"
 89                 android:layout_width="wrap_content"
 90                 android:layout_height="wrap_content"
 91                 android:layout_alignParentRight="true"
 92                 android:layout_centerVertical="true"
 93                 android:paddingBottom="16dp"
 94                 android:paddingLeft="24dp"
 95                 android:paddingRight="24dp"
 96                 android:paddingTop="16dp"
 97                 android:textAllCaps="true"
 98                 android:textColor="@color/ondarktext"
 99                 android:textSize="?attr/TextSizeBody"
100                 android:textStyle="bold" />
101         </RelativeLayout>
102
103</RelativeLayout>