Resources and layout direction rendered incorrectly only on Android 8.0 and above
The updateConfiguration() method was deprecated Now we need to use createConfigurationContext() I have managed this way create a new class ContextWrapper import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; import android.os.Build; import android.os.LocaleList; import java.util.Locale; public class ContextWrapper extends android.content.ContextWrapper { public ContextWrapper(Context base) { super(base); } public static ContextWrapper wrap(Context context, Locale newLocale) { Resources res … Read more