如何为安卓开发软键盘? [英] How to develop a soft keyboard for Android?

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

问题描述

我想尝试一些想法,并为 Android 开发一个软键盘来替换默认键盘.

I would like to play around with some ideas and develop a soft keyboard for Android to replace the default one.

  • 那里有关于 Android 软键盘开发的一般信息吗?有什么最佳做法或指南吗?

  • Is there any general information about soft keyboard development for Android out there? Any best practices or guidelines?

我可以用我的键盘应用程序做任何我可以用普通 Android 应用程序做的事情吗?

Can I do with my keyboard application pretty much anything I could do with a normal Android application?

我可以通过 HTTP 连接将键盘数据与云数据库和我拥有的其他手机同步吗?

Can I do HTTP connections to synchronize keyboard data with a cloud DB and other phones I have?

我可以通过按键打开其他窗口/屏幕吗?显示与普通 QWERTY 不同的自定义输入界面.如果这不起作用,我可以改用弹出对话框吗?

Can I open other windows/screens from a key press, e.g. to display a custom input interface different to a normal QWERTY one. If that doesn't work, can I use a pop-up dialog instead?

推荐答案

一些提示:

关于您的问题:

inputMethod 基本上是一个 Android Service,所以是的,您可以执行 HTTP 以及您可以在 Service 中执行的所有操作.

An inputMethod is basically an Android Service, so yes, you can do HTTP and all the stuff you can do in a Service.

您可以从 InputMethod 打开 Activity 和对话框.再一次,它只是一个Service.

You can open Activities and dialogs from the InputMethod. Once again, it's just a Service.

我一直在开发 IME,如果遇到问题,请再次询问.

I've been developing an IME, so ask again if you run into an issue.

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

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