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="#e5e5e5" >
  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="#eee" >
 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="#eee"
 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
 32            <requestFocus />
 33        </EditText>
 34
 35        <ImageButton
 36            android:id="@+id/textSendButton"
 37            android:layout_width="48dp"
 38            android:layout_height="48dp"
 39            android:layout_alignParentRight="true"
 40            android:layout_centerVertical="true"
 41            android:background="?android:selectableItemBackground"
 42            android:src="@drawable/ic_action_send_now" />
 43    </RelativeLayout>
 44
 45    <ListView
 46        android:id="@+id/messages_view"
 47        android:layout_width="fill_parent"
 48        android:layout_height="wrap_content"
 49        android:layout_above="@+id/textsend"
 50        android:layout_alignParentLeft="true"
 51        android:layout_below="@+id/info_box"
 52        android:background="#e5e5e5"
 53        android:divider="@null"
 54        android:dividerHeight="0dp"
 55        android:listSelector="@android:color/transparent"
 56        android:stackFromBottom="true"
 57        android:transcriptMode="normal"
 58        tools:listitem="@layout/message_sent" >
 59    </ListView>
 60
 61    <LinearLayout
 62        android:id="@+id/info_box"
 63        android:layout_width="fill_parent"
 64        android:layout_height="wrap_content"
 65        android:orientation="vertical" >
 66
 67        <LinearLayout
 68            android:id="@+id/muc_error"
 69            android:layout_width="fill_parent"
 70            android:layout_height="wrap_content"
 71            android:background="@drawable/redbackground"
 72            android:orientation="vertical"
 73            android:visibility="gone" >
 74
 75            <TextView
 76                android:id="@+id/muc_error_msg"
 77                android:layout_width="wrap_content"
 78                android:layout_height="wrap_content"
 79                android:padding="8dp"
 80                android:textColor="#eee"
 81                android:textSize="20sp"
 82                android:textStyle="bold" />
 83
 84            <TextView
 85                android:layout_width="wrap_content"
 86                android:layout_height="wrap_content"
 87                android:paddingBottom="8dp"
 88                android:paddingLeft="8dp"
 89                android:text="Click to edit conference details"
 90                android:textColor="#eee"
 91                android:textSize="14sp" />
 92        </LinearLayout>
 93
 94        <LinearLayout
 95            android:id="@+id/new_fingerprint"
 96            android:layout_width="fill_parent"
 97            android:layout_height="wrap_content"
 98            android:background="@drawable/redbackground"
 99            android:orientation="vertical"
100            android:visibility="gone" >
101
102            <TextView
103                android:layout_width="wrap_content"
104                android:layout_height="wrap_content"
105                android:padding="8dp"
106                android:text="Unknown OTR Fingerprint"
107                android:textColor="#eee"
108                android:textSize="20sp"
109                android:textStyle="bold" />
110
111            <TextView
112                android:id="@+id/otr_fingerprint"
113                android:layout_width="wrap_content"
114                android:layout_height="wrap_content"
115                android:paddingBottom="8dp"
116                android:paddingLeft="8dp"
117                android:textColor="#eee"
118                android:textSize="14sp"
119                android:typeface="monospace" />
120        </LinearLayout>
121
122        <LinearLayout
123            android:id="@+id/pgp_keyentry"
124            android:layout_width="fill_parent"
125            android:layout_height="wrap_content"
126            android:background="@drawable/bluebackground"
127            android:orientation="vertical"
128            android:visibility="gone" >
129
130            <TextView
131                android:layout_width="wrap_content"
132                android:layout_height="wrap_content"
133                android:padding="8dp"
134                android:text="OpenPGP encrypted messages found"
135                android:textColor="#eee"
136                android:textSize="20sp"
137                android:textStyle="bold" />
138
139            <TextView
140                android:layout_width="wrap_content"
141                android:layout_height="wrap_content"
142                android:paddingBottom="8dp"
143                android:paddingLeft="8dp"
144                android:text="Click here to enter passphrase and decrypt messages"
145                android:textColor="#eee"
146                android:textSize="14sp" />
147        </LinearLayout>
148    </LinearLayout>
149
150</RelativeLayout>