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/primarybackground" >
  7
  8    <RelativeLayout
  9        android:id="@+id/textsend"
 10        android:layout_width="fill_parent"
 11        android:layout_height="wrap_content"
 12        android:layout_alignParentBottom="true"
 13        android:layout_alignParentLeft="true"
 14        android:background="@color/primarybackground" >
 15
 16        <EditText
 17            android:id="@+id/textinput"
 18            android:layout_width="wrap_content"
 19            android:layout_height="wrap_content"
 20            android:layout_alignParentLeft="true"
 21            android:layout_toLeftOf="@+id/textSendButton"
 22            android:background="@color/primarybackground"
 23            android:ems="10"
 24            android:inputType="textShortMessage|textMultiLine|textCapSentences"
 25            android:minHeight="48dp"
 26            android:minLines="1"
 27            android:paddingBottom="12dp"
 28            android:paddingLeft="8dp"
 29            android:paddingRight="8dp"
 30            android:paddingTop="12dp"
 31            android:textColor="@color/primarytext">
 32
 33            <requestFocus />
 34        </EditText>
 35
 36        <ImageButton
 37            android:id="@+id/textSendButton"
 38            android:layout_width="48dp"
 39            android:layout_height="48dp"
 40            android:layout_alignParentRight="true"
 41            android:layout_centerVertical="true"
 42            android:background="?android:selectableItemBackground"
 43            android:src="@drawable/ic_action_send_now" />
 44    </RelativeLayout>
 45
 46    <ListView
 47        android:id="@+id/messages_view"
 48        android:layout_width="fill_parent"
 49        android:layout_height="wrap_content"
 50        android:layout_above="@+id/textsend"
 51        android:layout_alignParentLeft="true"
 52        android:layout_below="@+id/info_box"
 53        android:background="@color/secondarybackground"
 54        android:divider="@null"
 55        android:dividerHeight="0dp"
 56        android:listSelector="@android:color/transparent"
 57        android:stackFromBottom="true"
 58        android:transcriptMode="normal"
 59        tools:listitem="@layout/message_sent" >
 60    </ListView>
 61
 62    <LinearLayout
 63        android:id="@+id/info_box"
 64        android:layout_width="fill_parent"
 65        android:layout_height="wrap_content"
 66        android:orientation="vertical" >
 67
 68        <LinearLayout
 69            android:id="@+id/muc_error"
 70            android:layout_width="fill_parent"
 71            android:layout_height="wrap_content"
 72            android:background="@drawable/redbackground"
 73            android:orientation="vertical"
 74            android:visibility="gone" >
 75
 76            <TextView
 77                android:id="@+id/muc_error_msg"
 78                android:layout_width="wrap_content"
 79                android:layout_height="wrap_content"
 80                android:padding="6dp"
 81                android:textColor="#eee"
 82                android:textSize="18sp"
 83                android:textStyle="bold" />
 84
 85            <TextView
 86                android:layout_width="wrap_content"
 87                android:layout_height="wrap_content"
 88                android:paddingBottom="6dp"
 89                android:paddingLeft="6dp"
 90                android:text="@string/edit_conference_details"
 91                android:textColor="#eee"
 92                android:textSize="14sp" />
 93        </LinearLayout>
 94
 95        <LinearLayout
 96            android:id="@+id/new_fingerprint"
 97            android:layout_width="fill_parent"
 98            android:layout_height="wrap_content"
 99            android:background="@drawable/redbackground"
100            android:orientation="vertical"
101            android:visibility="gone" >
102
103            <TextView
104                android:layout_width="wrap_content"
105                android:layout_height="wrap_content"
106                android:padding="6dp"
107                android:text="@string/unknown_otr_fingerprint"
108                android:textColor="#eee"
109                android:textSize="18sp"
110                android:textStyle="bold" />
111
112            <TextView
113                android:id="@+id/otr_fingerprint"
114                android:layout_width="wrap_content"
115                android:layout_height="wrap_content"
116                android:paddingBottom="6dp"
117                android:paddingLeft="6dp"
118                android:textColor="#eee"
119                android:textSize="14sp"
120                android:singleLine="true"
121                android:typeface="monospace" />
122        </LinearLayout>
123
124        <LinearLayout
125            android:id="@+id/pgp_keyentry"
126            android:layout_width="fill_parent"
127            android:layout_height="wrap_content"
128            android:background="@drawable/bluebackground"
129            android:orientation="vertical"
130            android:visibility="gone" >
131
132            <TextView
133                android:layout_width="wrap_content"
134                android:layout_height="wrap_content"
135                android:padding="6dp"
136                android:text="@string/openpgp_messages_found"
137                android:textColor="#eee"
138                android:textSize="18sp"
139                android:textStyle="bold" />
140
141            <TextView
142                android:layout_width="wrap_content"
143                android:layout_height="wrap_content"
144                android:paddingBottom="6dp"
145                android:paddingLeft="6dp"
146                android:text="@string/openpgp_click_to_decrypt"
147                android:textColor="#eee"
148                android:textSize="14sp" />
149        </LinearLayout>
150    </LinearLayout>
151
152</RelativeLayout>