Dynamically change android soft keyboard language setting?
Asked Answered
N

3

1

I have some edit boxes in my app, some of them I will input English text, some of them I will input Spanish.

I'm using the standard android soft keyboard, however as my device locale is set to English, when I type Spanish in one of my "Spanish" edit boxes, the English corrective text/predictive text makes this difficult.

The only workaround I've found, is to go into the device settings and change the language over, but this is quite annoying.

Is there anyway I could have some kind of button, that when clicked would dynamically change the soft keyboards language setting? Is this exposed via any Intents?

Regards

Nobel answered 1/7, 2011 at 8:59 Comment(0)
B
3

Try to slide your finger across the spacebar on your keyboard to change languages.

Befog answered 27/7, 2011 at 15:57 Comment(1)
Your answer does not satisfy the question @BefogPapillose
L
2

Is there anyway I could have some kind of button, that when clicked would dynamically change the soft keyboards language setting? Is this exposed via any Intents?

No, sorry.

However, you can use textNoSuggestions with your android:inputType attribute on the EditText to try to get rid of the suggestions.

Lippizaner answered 1/7, 2011 at 12:25 Comment(3)
Unfortunately this suggestion does not work with other keyboards (i.e, the Hacker's keyboard).Mordred
@LuisA.Florit: That is why I used the word "try". All of the attributes like inputType are hints, which an IME is welcome to honor or ignore.Lippizaner
I see. It is actually an annoying thing to have to keep switching properties in the keyboard, and to remember to come back. Thanks!Mordred
J
1

In the main phone settings you can choose input languages and then you can swipe the space bar to switch.

Jasminejason answered 10/11, 2012 at 16:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.