As Android developers, we often find ourselves in need of creating custom components. One common case is creating a custom keyboard.
The first solution most devs probably think of involves creating a custom XML keyboard, gluing a bunch of on click listeners to it, and probably having a special custom logic on setting that same value to an EditText or some other view. Sounds like a lot of work.
Fortunately, there is an interface called InputConnection, which can really make our lives easier and save us a lot of time. It was added in API level 3, and appears to have remained unnoticed by many developers.
Report Story