當前位置:編程學習大全網 - 網絡軟體 - 如何刪除android setting語言列表中多余的語言(只要中文和英文)

如何刪除android setting語言列表中多余的語言(只要中文和英文)

1.在android源文件/packages/apps/Settings/src/com/android/settings/inputmethod

/InputMethodAndSubtypeEnabler.java

public class InputMethodAndSubtypeEnabler extends SettingsPreferenceFragment {

final PreferenceCategory activeInputMethodsCategory = new PreferenceCategory(context);

activeInputMethodsCategory.setTitle(R.string.active_input_method_subtypes);

//註釋掉此行root.addPreference(activeInputMethodsCategory);

..........

...........

2.public class InputMethodAndSubtypeEnabler extends SettingsPreferenceFragment {

}

}

Collections.sort(subtypePreferences);

+ //for (int j = 0; j < subtypePreferences.size(); ++j) {

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

+ //}

//註釋掉以上三行行

mInputMethodAndSubtypePrefsMap.put(imiId, subtypePreferences);

}

if (isAutoSubtype) {

3.在文件/vendor/intel/products/mfld_dv10.mk

PRODUCT_PACKAGES += \

libSh3aParamsLiteOn8M

# product dpi config

//註釋掉此行PRODUCT_LOCALES += mdpi

//添加此行PRODUCT_AAPT_CONFIG := mdpi

//添加此行# Language config

//添加此行PRODUCT_LOCALES := en_US zh_CN

# video encoder and camera

PRODUCT_PACKAGES += \

  • 上一篇:歸屬地的解釋是什麽?
  • 下一篇:東方神起MV下載地址
  • copyright 2024編程學習大全網