B4X FEED Android system setting for high-contrast fonts - how to detect?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Android system setting for high-contrast fonts - how to detect? است. این موضوع تا کنون 44 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Android system setting for high-contrast fonts - how to detect?
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
44
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Can I detect if a device has the "High-contrast fonts" system setting enabled?

Background:
Some of my users reported that icons were not working correctly in my app, and I eventually discovered that they had turned on the Android "High-contrast fonts" accessibility setting. That feature changes text from a custom color to outlined black or white to make it more readable.

I use the Material and FontAwesome fonts to render icons in various colors, so this messed up my app.

I have now replaced those font icons with corresponding bitmaps (rendered on the fly), and that fixes things on some phones, but other phones (either newer Android versions or Samsung phones, haven't determined which yet) still convert those icon bitmaps to black or white, which is really annoying (and beyond the stated "high-contrast fonts" meaning).

Not sure if I can work around that, so I'm thinking that if I can detect the "high-contrast fonts" settings, I can at least inform users of the problem, and they...



 

عقب
بالا