2

I want to make custom keyboard in my app that supports multiple languages. By clicking the language button, it shows a particular language keyboard and display it in chat.

Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
vyas dipak
  • 109
  • 2
  • 15
  • Then you explain to him why its a bad idea. That's what a professional is supposed to do, not blindly implement a bad idea because he's told to. That's how you write crappy apps and waste money. – Gabe Sechan Feb 01 '16 at 09:13
  • @GabeSechan One application and valid use case for creating a custom keyboard would be for a kiosk device where only a very limited and locked down set of functionality is required. In this case, options like accessing keyboard settings, or even the ability to enter some characters may need to be restricted. For such a case, there might be licensing considerations with using a 3rd party keyboard. In this case the extra functionality might actually be the problem. – CJBS May 05 '16 at 18:15
  • Related: http://stackoverflow.com/questions/3480715/how-to-develop-a-soft-keyboard-for-android – CJBS May 05 '16 at 18:18
  • Specifically with regards to multiple language support, see "Creating an IME Subtype" in http://developer.android.com/guide/topics/text/creating-input-method.html#IMESubTypes – CJBS May 05 '16 at 18:23

2 Answers2

4

Documentation exists on the official Android developer's website and deals with exactly this topic. See http://developer.android.com/guide/topics/text/creating-input-method.html.

Regarding multiple language support, there is a section in there titled "Creating an IME Subtype" that specifically deals with this. There are also multiple tutorials that deal with the creation of keyboard subtypes, such as this one. Further, here is an example of how the LatinIME's subtypes are defined (on Google's Android source code website).

CJBS
  • 15,147
  • 6
  • 86
  • 135
1

You can use some third party library like Indic

Pr38y
  • 1,565
  • 13
  • 21