![]() This means sp should be used for text elements so the size of the text will increase or decrease with the device setting. However, sp changes with the user's font preference and dp does not. sp, scalable pixels, have the same default value as dp. dp, density-independent pixels, are used for displaying consistently sized user interface across any screen size. Most of the time this is caused by using dp for text sizing instead of sp. While the layout is displayed correctly and text is visible, the user is not able to gain any benefit from the device setting and, as such, will struggle with reading the text. This is the number one issue on the list. ![]() In some apps, after changing the font size, the text does not scale up at all. The following problems are the most common and often easily fixed. ![]() However, even slightly larger than the default font size often means that a lot of issues appear. Reducing font size rarely causes any issues. I have been using various apps on my phone with non-default text and density settings. That is a big group of people, which makes it really important to consider how this setting will be supported when developing and testing your apps. With such a large percentage, it is reasonable to assume that Android users likely also change these settings in similar frequency. Technology agency from the Netherlands, Q42, carried out extensive research on 1.5 million iOS users and found that as many as 33% of people change the text size on their phone, and increasing text size is more common than making the text size smaller (20% increasing vs 13% decreasing). Do you ever open the app and cannot read the full text because it's cut off in some way? This scenario became frequent to me once I increased the font size on my phone.
0 Comments
Leave a Reply. |