Red de conocimiento informático - Material del sitio web - Cómo eliminar idiomas redundantes en la lista de idiomas de configuración de Android (solo chino e inglés)

Cómo eliminar idiomas redundantes en la lista de idiomas de configuración de Android (solo chino e inglés)

1. En el archivo fuente de Android/packages/apps/Settings/src/com/android/settings/inputmethod

/InputMethodAndSubtypeEnabler.java

clase pública. InputMethodAndSubtypeEnabler extiende SettingsPreferenceFragment {

final PreferenceCategory activeInputMethodsCategory = new PreferenceCategory(context);

activeInputMethodsCategory.setTitle(R.string.active_input_method_subtypes);

//Comentar esta línea root.addPreference(activeInputMethodsCategory);

..........

...........

2. la clase pública InputMethodAndSubtypeEnabler extiende SettingsPreferenceFragment {

}

}

Collections.sort(subtypePreferences);

//para ( int j = 0; j lt; subtypePreferences.size(); j) {

//activeInputMethodsCategory.addPreference(subtypePreferences.get(j));

//}

//Comenta las tres líneas anteriores

mInputMethodAndSubtypePrefsMap.put(imiId, subtypePreferences);

}

if (isAutoSubtype) {< / p>

3.

//Comentar esta línea PRODUCT_LOCALES = mdpi

//Agregar esta línea PRODU

CT_AAPT_CONFIG:= mdpi

//Agrega esta línea # Configuración de idioma

//Agrega esta línea PRODUCT_LOCALES:= en_US zh_CN

# codificador de video y cámara

PRODUCTO_PACKAGES = \