如何在选择输入法对话框中添加自己的自定义 IME

发布于 2024-09-16 11:52:52 字数 166 浏览 9 评论 0原文

我想在“选择输入法选择器”对话框中显示我自己的 IME,例如日语 IME 和中文 IME。我怎样才能做到这一点?

我是安卓新手。我测试过希腊语输入法和其他输入法。虽然.apk上传成功。但无法在其中显示以及如何从这个地方选择自己的输入法。

我需要在代码中做什么?

I'd like to show my own IME in the Select input method chooser dialog like the Japanese IME and the Chinese IME. How can I do that?

I am new to Android. I have tested Greek IME and other IME. Although .apk is successfully uploaded. But can't show in it and how to choose own IME from this place.

What do I need to do in my code?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

总以为 2024-09-23 11:52:52

您可能需要先激活已安装的键盘,然后才能在“输入法”菜单中选择它们。为此,您需要打开“设置”->“语言与键盘,并在此菜单中检查您想要使用的键盘。这可能应该让您的 GreekIME 运行。

现在,为了编写您自己的软键盘,有一个随 Android SDK 提供的示例。您可以在 /samples/SoftKeyboard 中找到它。该过程的记录有点少,但是当您启动并运行示例时,您可以开始稍微调整示例,并且您应该掌握它的窍门。

You probably need to activate the installed keyboards before you can select them in the Input Method menu. For this you need to open Settings -> Language & Keyboard and in this menu check the keyboards you would like to use. This probably should get your GreekIME running.

Now for coding your own soft keyboard, there is an example which is delivered with the Android SDK. You can find it in <Andoid SDK Base>/samples/SoftKeyboard. The process is a bit poorly documented, but when you get the example up and running you can start to tweak the example a bit and you should get the hang of it.

千纸鹤 2024-09-23 11:52:52

写得很好关于
来自developer.android.com 的屏幕输入法

部分。 ..
什么是输入法?

Android IMF 旨在支持各种 IME,包括软键盘、手写识别器和硬键盘翻译器。然而,我们的重点将放在软键盘上,因为这是当前平台的一部分的输入法。

Nice writeup about
Onscreen Input Methods from developer.android.com

In part ...
What is an input method?

The Android IMF is designed to support a variety of IMEs, including soft keyboard, hand-writing recognizers, and hard keyboard translators. Our focus, however, will be on soft keyboards, since this is the kind of input method that is currently part of the platform.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文