From 5fe926b64586f5ac7d3eba7a64de81a710437a14 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Fri, 6 Jun 2014 11:39:17 +0200 Subject: basic last seen feature. no peristancy just yet. no polish --- res/layout/fragment_conversation.xml | 188 +++++++++++++++++++---------------- res/values/strings.xml | 4 + res/xml/preferences.xml | 5 + 3 files changed, 112 insertions(+), 85 deletions(-) (limited to 'res') diff --git a/res/layout/fragment_conversation.xml b/res/layout/fragment_conversation.xml index ca09d7708..ab9bb528f 100644 --- a/res/layout/fragment_conversation.xml +++ b/res/layout/fragment_conversation.xml @@ -3,32 +3,33 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="#e5e5e5"> + android:background="#e5e5e5" > + android:layout_alignParentLeft="true" + android:background="#eee" > - + android:minHeight="48dp" + android:minLines="1" + android:paddingBottom="12dp" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:paddingTop="12dp" > + + - + tools:listitem="@layout/message_sent" > + - - + android:orientation="vertical" > - - - - - - - + android:background="@drawable/redbackground" + android:orientation="vertical" + android:visibility="gone" > - + + + + + - + + + + + + + - + android:background="@drawable/bluebackground" + android:orientation="vertical" + android:visibility="gone" > + + + + + + + android:layout_below="@+id/info_box"> - - - + android:layout_gravity="center" + android:padding="4dp" + android:text="@string/last_seen" + android:textColor="#e5e5e5" + android:textSize="14sp" /> + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 6767568e5..48849eb47 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -147,6 +147,8 @@ By sending in stack traces you are helping the ongoing development of Conversations Confirm Messages Let your contact know when you have received and read a message + Display last seen + Display the latest time a contact has been seen online OpenKeychain reporeted an error I/O Error decrypting file Error copying image file. @@ -234,4 +236,6 @@ hours mins Missing public key announcements + last seen %1$s ago on %2$s + never seen \ No newline at end of file diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 40039cd5c..be9a2be70 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -72,6 +72,11 @@ android:title="@string/pref_conference_name" android:summary="@string/pref_conference_name_summary" android:defaultValue="true"/> + -- cgit v1.2.3