From 457fdffce4550b5597435f030483dcafffecf714 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Tue, 9 Feb 2010 14:17:30 -0800 Subject: [PATCH] Change the voice checkboxes into a 3-state list. Also add a language-switch hint --- res/values/strings.xml | 33 +++++++-- res/xml/prefs.xml | 22 ++---- .../android/inputmethod/latin/LatinIME.java | 8 +- .../inputmethod/latin/LatinIMESettings.java | 73 +++++++++---------- 4 files changed, 76 insertions(+), 60 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 85de32207..a19aa3ba7 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -250,13 +250,34 @@ OK - Voice input + Voice input - - Mic on primary + + + On main keyboard + On symbols keyboard + Off + - - Show the microphone on the primary keyboard + + 0 + + 1 + + 2 + + + @string/voice_mode_main + @string/voice_mode_symbols + @string/voice_mode_off + + + + + Mic on main keyboard + Mic on symbols keyboard + Voice input is disabled + Auto submit after voice @@ -293,4 +314,6 @@ Select input languages + + Slide your finger across the spacebar to switch diff --git a/res/xml/prefs.xml b/res/xml/prefs.xml index 4792c43cf..29c43cba5 100644 --- a/res/xml/prefs.xml +++ b/res/xml/prefs.xml @@ -37,24 +37,18 @@ android:defaultValue="true" /> - - - + android:title="@string/language_selection_title" + android:summary="@string/language_selection_summary">