android - How to know if the keyboard layout changes between numbers and letters? -
i have edittext users normaly enter numbers. therefore i'm using inputtype.type_class_number numerical soft keyboard. occationally though, users may want enter letters, have button switches between inputtype.type_class_number , inputtype.type_class_text.
works fine, found behaviour becomes strange on devices hardware keyboard. found this answer solves issue, can exclude keyboard switching functionality devices.
but there devices, e.g. asus transformer prime tablet, never changes software keyboard layout when switching between inputtype.type_class_number , inputtype.type_class_text. how can know if software keyboard change layout or not?
how can know if software keyboard change layout or not?
you can't. inputtype
hint, not demand. input method editors ("software keyboards") don't have buttons (see graffiti). there no means of interrogating system determine capability of input method editors, largely because authors of input method editors not have declare capabilities. can honor or ignore inputtype
, etc. see fit.
Comments
Post a Comment