Increase the font size based on the size of the device

前端 未结 7 647
天命终不由人
天命终不由人 2020-12-14 16:53

I planned to use different font size for the textview on different device size so as to make the letters legible. I have already decided not to use different layouts for dif

7条回答
  •  Happy的楠姐
    2020-12-14 16:59

    For font sizes use scale pixels (sp). Android will scale the font size accordingly depending on the device density. Above posts have a better explanation and the reasoning.

提交回复
热议问题