如何开发Android应用自定义软键盘?自定义、键盘、Android

由网友(沉默以对)分享简介:我有我做了,我真的想提出一个自定义的软键盘为数学相关的应用。它会像一个小键盘和特殊字符,如PI和内置的平方根符号属性。我希望它来代替,以默认的键盘只是该应用程序,只打开我开发这个应用程序的键盘。我的问题是我怎么做呢?难道我做一个键盘出表的布局和一堆按钮,当我点击文本框打开,还是我使用的键盘布局的?I've got a...

我有我做了,我真的想提出一个自定义的软键盘为数学相关的应用。它会像一个小键盘和特殊字符,如PI和内置的平方根符号属性。我希望它来代替,以默认的键盘只是该应用程序,只打开我开发这个应用程序的键盘。我的问题是我怎么做呢?难道我做一个键盘出表的布局和一堆按钮,当我点击文本框打开,还是我使用的键盘布局的?

I've got an Math related application I've made that I really would like to make a custom soft keyboard for. It would have attributes like a numpad and special characters like pi and square root symbols built in. I would want it to replace to default keyboard just for that application, and only open the keyboard that I develop for this app. My question is how do I do that? Do I make a "keyboard" out of table layouts and a bunch of buttons that opens when I click on the text field, or do I make use of the keyboard layout?

推荐答案

您不应该创建一个表的布局和一堆按钮,这是一个陌生的用户界面,并创建一个不好的用户体验。看到这个答案如何创建一个自定义的软键盘是相同平台的软键盘,但包含了你所需要的密钥:android应用特定的软键盘

You should not create a table layout and a bunch of buttons, it is an unfamiliar user interface and creates a bad user experience. See this answer about how to create a custom soft keyboard that is identical to the platform soft keyboard but contains the keys you need: android app specific soft keyboard

阅读全文

相关推荐

最新文章