From 2fda5bfc9792d1150c14bef3ff1716162722e878 Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Tue, 24 Sep 2013 13:16:02 +0200 Subject: Fixed 140 - Multiline Entries in KeyServerQueryActivity * EditText is now singleLine and has a hint * EditText has set inputType=text and imeOptions=actionSearch * Implemented listener for the actionSearch event * Reformated the source code according to the project specification. Sorry for the diff mess :-/ Signed-off-by: Bahtiar `kalkin-` Gadimov --- .../res/layout/key_server_query_layout.xml | 27 ++--- OpenPGP-Keychain/res/values/strings.xml | 1 + .../keychain/ui/KeyServerQueryActivity.java | 114 +++++++++++++-------- 3 files changed, 90 insertions(+), 52 deletions(-) diff --git a/OpenPGP-Keychain/res/layout/key_server_query_layout.xml b/OpenPGP-Keychain/res/layout/key_server_query_layout.xml index 6af4f3644..610cf82ba 100644 --- a/OpenPGP-Keychain/res/layout/key_server_query_layout.xml +++ b/OpenPGP-Keychain/res/layout/key_server_query_layout.xml @@ -1,5 +1,6 @@ - - + android:orientation="vertical" > + android:layout_height="wrap_content" /> + android:orientation="horizontal" > + android:layout_weight="1" + android:hint="@string/hint_secretKeys" + android:imeOptions="actionSearch" + android:inputType="textNoSuggestions" + android:singleLine="true" />