简体   繁体   中英

Android: font size bigger (wider?) on HTC One than on Galaxy S4

I'm using custom fonts for all components in my application. All font sizes are defined in dimens.xml file in sp format.

However fonts are bigger (wider?) on HTC ONE and smaller on Galaxy S4 which messes up my layouts. Any idea how can I correct this?

Sorry, my fault.

I just realized, that sp calculates font size based on user preferences.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM