【问题标题】:Google Map Polyline path谷歌地图折线路径
【发布时间】:2014-12-11 16:40:57
【问题描述】:

如何让交通区域为红色,交通灯为黄色的路径,如何处理?enter image description here

【问题讨论】:

    标签: android google-maps google-polyline


    【解决方案1】:

    那是在Input Method Framework

    InputContext ic = InputContext.getInstance();
    Locale locale = ic.getLocale();
    

    现在有了像 en_US 这样的当前语言环境。

    System.out.println(locale.getLanguage()); // ar/en
    

    可以通过以下方式切换键盘区域设置:

    if (!ic.selectInputMethod(locale)) {
        // Failed to switch...
    }
    

    【讨论】:

    • 我尝试了所有方法但结果总是错误的我是否有有效的方法可以使用
    • 我输入了错误的类名,应该是 InputContext,但在一个小型 Swing 应用程序中,它检测到键盘布局切换到另一种语言。在 Windows 下作为下方栏中的图标:EN 或 AR。
    • 此函数返回 true 而不是 EN 或 AR
    • 我已经澄清了答案,getLocale() 返回语言环境。
    猜你喜欢
    • 2014-10-29
    • 2014-09-14
    • 2018-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-11
    • 1970-01-01
    相关资源
    最近更新 更多