Is it possible to refresh the view of a Fragment

后端 未结 3 914
滥情空心
滥情空心 2020-12-31 01:12

I changed the locale of my application programmatically, like following:

Resources res = context.getResources();

 DisplayMetri         


        
3条回答
  •  情书的邮戳
    2020-12-31 02:01

    You could create a listener, which will be called when the locale changes. This will then remove the Fragment, and re add the Fragment. Your new locale should then be picked up.

提交回复
热议问题