开发者

xml for numeric keypad with "-" and "/"

I have an edit field that accepts numbers, but I 开发者_运维知识库want to be able to show fractions like "3-1/2". The numeric soft keypad does not have the "-" and "/" symbols available.

Is there any way in xml code for the edit control to pop up the regular text soft keyboard with the alt "123" button (lower left) selected so that the numbers will show on the top row and the other symbols I need are available to the user?

Thanks!


You can use the android.inputmethodservice.Keyboard part of the sdk to write your own description of a keyboard, in XML format. I haven't played around with it myself but it looks promising.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜