0

Suppose i am having shortcuts codes for templates like following,

##waf - Where are you from ? ##hoay - How old are you ? ##ibrn - I am busy right now.

I need to create a custom keyboard. In which, if i entered the short codes, it must be replace with the template . Is android Input methods api supporting this ?.

Sujith
  • 7,543
  • 1
  • 28
  • 38

1 Answers1

0

You can follow the link . android edittext onchange listener

at this area

public void onTextChanged(CharSequence s, int start, int before, int count) {
   switch(textboxvalue)
   {
    case xxxx:
    setanytext ;
    break;
   ....
   }
}
Community
  • 1
  • 1
Mgnfcnt
  • 129
  • 3
  • 11
  • I am talking about Customizing android keyboard dude. – Sujith Aug 20 '14 at 06:49
  • Won't you enter this keyboard input to a specific area like a texbox? Where will you enter this specific input? to your own application input areas or anywhere on device? – Mgnfcnt Aug 20 '14 at 08:47
  • I am working on a custom keyboard like SwiftKey Keyboard, Swype Keyboard, etc. – Sujith Aug 20 '14 at 09:02