下面列出了android.view.inputmethod.InputMethodManager#setAdditionalInputMethodSubtypes ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
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();
}
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();
}