How to make keyboard swipe as an application

I would like to know what is the theme for a gesture keyboard, such as a Swype Keyboard or a Nexus 4 keyboard. I have searched a lot for this, but cannot find anything useful.

Obviously, I found an example in the sdk examples for a simple keyboard and started from there to understand the principle of IME development. Now that I understand how everything works, I would like to understand how such keyboards work. I thought it was related to gestures, and I studied them, but it looks wrong. Therefore, I ask this question what technique is the base. Is this a drawing? Do I need to expand Canvas ecc?

thanks

+6
source share
2 answers

Well, since I helped write Swype, I will help you a little. You will need to spend a lot of time studying DSP (digital signal processing) in order to understand how to evaluate incoming touch data and find out where the letters are (this is harder than you think, because people don’t swype pure letter to letter - loop and curl) . Swype algorithms were the result of more than ten years of research by our founder.

+7
source

The problem is twofold:

1- Implementation of a custom keyboard. This question has been asked before here , but you can check this post with some sample code: http://www.fampennings.nl/maarten/android/09keyboard/index.htm

2- Implementing swipe gestures. This is even more complicated, since you will need to create your onTouchListener and draw some kind of animation when you touch the screen. You can start here

+4
source

Source: https://habr.com/ru/post/946856/


All Articles