Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何以编程方式检测 Android 上是否启用了“大文本”可访问性选项?
如果设置了大文本,android 会更改字体比例,因此您可以检测使用
Configuration c = getResources().getConfiguration(); float scale = c.fontScale;
如果 scale 大于 1 则为大文本。