From 35609e552975ad878b3612b66cf371d3175b4a55 Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Sun, 29 May 2011 17:50:00 -0700 Subject: [PATCH] IME behavior changes for the ConversationActivity (1) Let full-screen IMEs wrap the text into multiple lines instead of making the text scroll off the screen. (2) Provide a preference to let the user choose whether or not to enable autocorrection of typed text. (3) Provide a preference to let the user choose whether or not to enable autocapitalization of sentences. Note that even when this is enabled, autocapitalization will only happen if the option is also enabled in the IME. (4) In landscape mode only, don't replace the Enter key with a Send button, to make it harder to accidentally send a message. (We can't do this in portrait, because we would be left without any send button at all -- perhaps the input line should be changed to be similar to the text message application, which has a send button next to the input line?) --- application/res/layout/conversations.xml | 2 +- application/res/values/settings.xml | 6 +++++ application/res/values/strings.xml | 4 +++ application/res/xml/preferences.xml | 10 +++++++ .../yaaic/activity/ConversationActivity.java | 27 +++++++++++++++---- application/src/org/yaaic/model/Settings.java | 22 +++++++++++++++ 6 files changed, 65 insertions(+), 6 deletions(-) diff --git a/application/res/layout/conversations.xml b/application/res/layout/conversations.xml index fbc43b9..b235430 100644 --- a/application/res/layout/conversations.xml +++ b/application/res/layout/conversations.xml @@ -72,7 +72,7 @@ along with Yaaic. If not, see . android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" - android:singleLine="true" + android:inputType="textImeMultiLine" android:imeOptions="actionSend" />