The problem is two-fold:
1- Implementing a custom keyboard. This question has been asked before here, but you can check out this post with some sample code: http://www.fampennings.nl/maarten/android/09keyboard/index.htm
2- Implementing the swipe gesture. This is even more complicated, as you would have to create your onTouchListener, and draw some kind of animation when the screen is touched. You could start here