Anki-android: Automatically change a keyboard layout on focus

Created on 28 Jul 2015  Â·  11Comments  Â·  Source: ankidroid/Anki-Android

Originally reported on Google Code with ID 2600

It would be awesome to make the app remember the last keyboard layout for each field
when you create new cards. E.g. you have Russian and English translation fields. So,
the layout (in the apps SwiftKey and Swype as most popular, for example) switches to
Russian in the first field and bakc to English in the second automatically when the
fields get focus.

Reported by pyastolov on 2015-05-08 08:04:17

Accepted Enhancement Priority-High

All 11 comments

Thanks for the suggestion, that would be useful indeed!

Unfortunately there are no APIs for changing the language of a keyboard from an Android
app (at least as far as I'm aware), as it depends on the keyboard implementation...
We can give hints about the type of data expected (e.g. email address, phone number),
but language isn't one of those:

https://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType

If anyone knows a way to do this then please let us know

Reported by perceptualchaos2 on 2015-05-09 00:53:50

  • Status changed: WaitingForFeedback
Issue 1836 has been merged into this issue.

Reported by perceptualchaos2 on 2015-06-16 02:07:09

Reported by nicolas.raoul on 2015-07-28 00:46:52

  • Status changed: Accepted
  • Labels added: Priority-High
  • Labels removed: Priority-Undecided

In Duolingo, when I study Russian with Español, the Gboard keyboard language changes automatically according to the language that needs to be written.

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like _still searching for solutions_ and if you found one, please open a pull request! You have 7 days until this gets closed automatically

This feature is not implemented as of 2.9.7. Please don't close the issue.

@Minoru Just to note: we're up to 2.11.0 if you'd like to upgrade. The feature hasn't been implemented yet

@david-allison-1 Thanks! Apparently 2.11 hasn't made it to F-Droid yet, but I just upgraded to 2.10.4. I'm in no hurry either way, AnkiDroid works just fine — the little improvement proposed here will just make it even better.

Thanks for making and maintaining such an excellent application! :heart:

Can't seem to get the last layout, but switching works: https://drive.google.com/file/d/19NNIilMRJbNmduQCjAYy1Lk7wZtCRbt0/view

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like _still searching for solutions_ and if you found one, please open a pull request! You have 7 days until this gets closed automatically

Nope - awaiting review

Was this page helpful?
0 / 5 - 0 ratings