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