android - Font changes after configuration change -
i have app allows switch between 2 different languages. updating configuration , restarting activity:
locale locale = new locale(lang); locale.setdefault(locale); configuration config = new configuration(); config.locale = locale; language = lang; getbasecontext().getresources().updateconfiguration(config, getbasecontext().getresources().getdisplaymetrics()); activity.recreate();
now have problem before switching language font sizes displayed differently after switching. see screenshots. ideas?