如何为安卓开发软键盘?

How to develop a soft keyboard for Android?(如何为安卓开发软键盘?)
本文介绍了如何为安卓开发软键盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我想尝试一些想法,并为 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?

推荐答案

一些提示:

  • 阅读本教程:创建输入法
  • 克隆此存储库:LatinIME

关于您的问题:

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.

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

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Storing and reading files from Documents directory iOS 5(从 Documents 目录存储和读取文件 iOS 5)
How can i use MYSQL database connection in iphone application useing cocos2d?(如何在使用 cocos2d 的 iphone 应用程序中使用 MYSQL 数据库连接?)
Smoothly drag a Sprite in cocos2d - iPhone(在 cocos2d 中平滑拖动一个 Sprite - iPhone)
CCScrollView scroll and touch events never firing(CCScrollView 滚动和触摸事件永远不会触发)
removing jagged edges of my ropes using antialiasing of OpenGLES(使用 OpenGLES 的抗锯齿去除绳索的锯齿状边缘)
cocos2d Moving between scene(cocos2d 在场景之间移动)