![]() Avoid text content with a fixed height and width.Avoid using tiny text that's difficult for some users to read.Define text sizes in units of scale-independent pixels (sp), not dp, px, or others.Text with a fixed width and height might not provide sufficient room for enlarged content, potentially causing text to be clipped when scaled.ĭesignWhen you design a user interface, you should: Text with a size in density-independent pixels (dp) won't scale. Height allows expansion, but will be at least 48dp. Text with size in sp, and height that allows expansion. ![]() ImplementationText sizes are defined in scalable pixels (sp). "wrap_content" or "match_parent" is preferred for the dimensions of a TextView or a non-scrolling container of scalable text. ![]() When you adjust the font size to make text appear larger, the increased size may cause parts of the text to become cropped, cut, or obscured if the layout is overly constrained. However, this setting only affects the appearance of text if its font size was specified in units of scalable pixels (sp). They can use their device's Font size Accessibility setting to make text larger on the screen. Some users have difficulty when they read texts that are small. Text scalingTo support different screen sizes, screen orientations, pixel densities, and font sizes, Accessibility Scanner looks for places where text doesn’t scale.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |