Issue
I have created a custom keyboard with English xml
and Russian xml-ru
layout files.
When the user changes the device locale from English to Russian or Russian to English, the layout should change to selected locale.
In my case, it changes only when device orientation changes.
Solution
Change your resources in onConfigurationChanged
.
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}
Answered By - Uday Nayak
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.