Locale: onConfigurationChanged not called

后端 未结 2 2063
臣服心动
臣服心动 2020-12-19 05:39

I want my language to change dynamically and I am trying to use onConfigurationChanged but it is not being called. I have a MainActivity that creates my action bar and viewp

2条回答
  •  执念已碎
    2020-12-19 05:43

    You have to define android:configChanges="layoutDirection|locale" in order for onConfigurationChanged() to be called.

提交回复
热议问题