如何开发Android应用自定义软键盘? [英] How to develop a custom Soft Keyboard for Android application?

查看:225
本文介绍了如何开发Android应用自定义软键盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我做了,我真的想提出一个自定义的软键盘为数学相关的应用。它会像一个小键盘和特殊字符,如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?

推荐答案

您不应该创建一个表的布局和一堆按钮,这是一个陌生的用户界面,并创建一个不好的用户体验。看到这个答案如何创建一个自定义的软键盘是相同平台的软键盘,但包含了你所需要的密钥:<一href=\"http://stackoverflow.com/questions/1896939/android-app-specific-soft-keyboard/8747979#8747979\">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

这篇关于如何开发Android应用自定义软键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆