Code example for InputMethodSubtype

Methods: getLocale

0
                (mOrientation == 1 ? "port" : "land"), mWidth,
                modeName(mMode),
                imeAction(), 
                (navigateNext() ? "navigateNext" : ""), 
                (navigatePrevious() ? "navigatePrevious" : ""), 
                (mClobberSettingsKey ? " clobberSettingsKey" : ""),
                (passwordInput() ? " passwordInput" : ""), 
                (mShortcutKeyEnabled ? " shortcutKeyEnabled" : ""),
                (mHasShortcutKey ? " hasShortcutKey" : ""),
                (mLanguageSwitchKeyEnabled ? " languageSwitchKeyEnabled" : ""),
                (isMultiLine() ? "isMultiLine" : "") 
        ); 
    } 
 
    public static boolean equivalentEditorInfoForKeyboard(EditorInfo a, EditorInfo b) {
        if (a == null && b == null) return true;
        if (a == null || b == null) return false;
        return a.inputType == b.inputType
                && a.imeOptions == b.imeOptions
                && TextUtils.equals(a.privateImeOptions, b.privateImeOptions);
    }