From 4b8a3d998d4a8a75b6e54069f018bc19d7ba6cd9 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 17 Jun 2014 19:14:27 -0700 Subject: #364 Rework chat layouts + add avatars --- res/layout/chat.xml | 2 +- res/layout/chat_item.xml | 60 +++++++++++++++++++++-------------- res/layout/chat_item_reverse.xml | 67 +++++++++++++++++++++++----------------- 3 files changed, 77 insertions(+), 52 deletions(-) (limited to 'res') diff --git a/res/layout/chat.xml b/res/layout/chat.xml index a62cfa65..89ad77ac 100644 --- a/res/layout/chat.xml +++ b/res/layout/chat.xml @@ -37,7 +37,7 @@ android:layout_weight="1" android:autoLink="all" android:hint="@string/chat.send_a_message" - android:inputType="textEmailAddress|textMultiLine" + android:inputType="textCapSentences|textAutoCorrect|textLongMessage" android:linksClickable="true" android:paddingBottom="10dip" android:paddingTop="10dip" /> diff --git a/res/layout/chat_item.xml b/res/layout/chat_item.xml index b44631d1..b175d6c1 100644 --- a/res/layout/chat_item.xml +++ b/res/layout/chat_item.xml @@ -1,36 +1,50 @@ + android:layout_height="wrap_content"> - + + android:layout_weight="1" + android:orientation="vertical" > - + android:layout_marginBottom="4dip" + android:orientation="horizontal" > + + + + + - - + android:layout_height="wrap_content"> + android:layout_weight="1" + android:orientation="vertical" > - + android:layout_marginBottom="4dip" + android:orientation="horizontal" + android:layout_gravity="right" > + + + + + + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_gravity="right"/> + + \ No newline at end of file -- cgit v1.2.3