Answers for "ANDROID DISABLE CHANGE FONT SIZE IN APP"

0

ANDROID DISABLE CHANGE FONT SIZE IN APP

in android mainactivity add after any @Override

    @Override
    protected void attachBaseContext(Context newBase) {
        super.attachBaseContext(newBase);
        final Configuration override = new Configuration(newBase.getResources().getConfiguration());
        override.fontScale = 1.0f;
        applyOverrideConfiguration(override);
    }
Posted by: Guest on July-21-2021

Code answers related to "ANDROID DISABLE CHANGE FONT SIZE IN APP"

Browse Popular Code Answers by Language