Android set large font after the text is obscured, display complete problem resolution

Source: Internet
Author: User

The original font unit SP,SP (pixels independent of density and font scaling): Similar to DP, but can be scaled based on the user's font size preference. When the user's font settings are magnified, problems such as cloaking can occur.

Solution One:

Automatically adapts, does not set the height and so on information. This makes the development and maintenance of the program more difficult! Because the implementation of who can not predict the size, local to the bottom of the alignment, resulting in the interface layout is very troublesome, need to be obtained during the program run. Multiple alignments will be processed multiple times!

Solution Two:

After testing the discovery system and some applications using the Font unit SP, there are some software using DP, you can change the font configuration, the size is still unchanged.

App with SP: all Android system applications, Baidu Input method, Huawei File Manager, etc.

DP-based: UC browser, super curriculum.

The above software is taken from a mobile phone.

Solution Three:

Bring your own fonts



Android to set a large font after the text is obscured, display complete problem resolution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.