Samsung Galaxy Note II-逗号作为数字键盘小数点分隔符 [英] Samsung Galaxy Note II - Comma as Numeric Keyboard Decimal Separator

查看:75
本文介绍了Samsung Galaxy Note II-逗号作为数字键盘小数点分隔符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用逗号作为三星 Galaxy Note II 数字键盘的小数点分隔符.我已经在其他设备(Moto X,植根于三星GS4的设备)上测试了我的应用程序,如果我从设备的系统设置中更改语言,则其小键盘上的分隔符正确.三星软件无法使用此功能吗?

I am trying to get commas as the decimal separator for the numeric keyboard on a Samsung Galaxy Note II. I've tested my app on other devices (Moto X, rooted Samsung GS4) and their numpads have the correct separator if I change the language from the device's system settings. Is this feature not possible on Samsung's software?

编辑/说明:是否可以在不告诉我的用户下载其他键盘或创建自己的输入UI的情况下使用正确的小数点分隔符?

Edit/Clarification: Is there a way to have the correct decimal separator without telling my users to download a different keyboard or creating my own input UI?

推荐答案

即使您问了问题2年后,我仍然遇到相同的问题.您最好安装Google键盘:

I experience the same problem, even now 2 years after you asked the question. You better install the Google keyboard:

https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin&hl=no

如果您需要使用内部设备管理系统分发APK,则可以从此处下载APK:

If you need to distribute the APK using your internal device management system the APK can be downloaded from here:

https://www.apkmirror.com/apk/google-inc/google-keyboard/

不幸的是(或者如果您认为安全性不高,则不是),您的应用没有编程方式来决定使用哪个键盘.最好的选择是在您的应用程序中有一个配置页,告诉用户如何以及为何应更改其默认键盘.

Unfortunately (or not if you think security wise) there is no programmatic way for your app to decide which keyboard to use. Best option is to have a configuration page in your app telling the users how and why they should change their default keyboard.

您可以使用此代码打开键盘设置对话框:

You can use this code to open a keyboard settings dialog:

    public void showInputMethodPicker() {

    InputMethodManager imeManager = (InputMethodManager) getApplicationContext().getSystemService(INPUT_METHOD_SERVICE);
    if (imeManager != null) {
        imeManager.showInputMethodPicker();
    }
}

这篇关于Samsung Galaxy Note II-逗号作为数字键盘小数点分隔符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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