Reputation: 21
i'd like to create my own EditText by extending View. (Extending TextView or EditText will be considered cheating ;-)
It will have simple functionality:
Right now, i'm wondering how to connect the soft keyboard events to my custom view? Do you have any ideas? samples?
thank you
Upvotes: 0
Views: 212
Reputation: 21
For those who are interested in a possible solution:
I have overwridden the onCreateInputConnection() method in my view and created a MyInputConnection by subclassing the abstract input connection class. From then on, i was able to handle any soft input events in my view.
Upvotes: 1