Detect if "Large Text" accessibility option is enabled on Android
Asked Answered
L

1

18

How can I programatically detect if "Large Text" accessibility option is enabled on Android?

Lamkin answered 6/8, 2012 at 10:32 Comment(0)
H
38

if Large Text is set, android changes the font scale , so you can detect using

Configuration c = getResources().getConfiguration();
float scale = c.fontScale;

if scale is greater than 1 then it is large text.

Hazlip answered 6/8, 2012 at 10:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.