Java Code Examples for android.view.inputmethod.InputMethodManager#setAdditionalInputMethodSubtypes()
The following examples show how to use
android.view.inputmethod.InputMethodManager#setAdditionalInputMethodSubtypes() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RichInputMethodManager.java From LokiBoard-Android-Keylogger with Apache License 2.0 | 6 votes |
private void initInternal(final Context context) { if (isInitialized()) { return; } mImmService = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE); mContext = context; mInputMethodInfoCache = new InputMethodInfoCache( mImmService, context.getPackageName()); // Initialize additional subtypes. SubtypeLocaleUtils.init(context); final InputMethodSubtype[] additionalSubtypes = getAdditionalSubtypes(); mImmService.setAdditionalInputMethodSubtypes( getInputMethodIdOfThisIme(), additionalSubtypes); // Initialize the current input method subtype and the shortcut IME. refreshSubtypeCaches(); }
Example 2
Source File: RichInputMethodManager.java From simple-keyboard with Apache License 2.0 | 6 votes |
private void initInternal(final Context context) { if (isInitialized()) { return; } mImmService = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE); mContext = context; mInputMethodInfoCache = new InputMethodInfoCache( mImmService, context.getPackageName()); // Initialize additional subtypes. SubtypeLocaleUtils.init(context); final InputMethodSubtype[] additionalSubtypes = getAdditionalSubtypes(); mImmService.setAdditionalInputMethodSubtypes( getInputMethodIdOfThisIme(), additionalSubtypes); // Initialize the current input method subtype and the shortcut IME. refreshSubtypeCaches(); }