2. Using 'dp' instead of 'px' to set text size
生活随笔
收集整理的這篇文章主要介紹了
2. Using 'dp' instead of 'px' to set text size
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
android:textSize="45px" ?==>?android:textSize="45dp"
因?yàn)锳ndroid Phone的手機(jī)分辨率各不相同,用px的話,在高分辨率的機(jī)子上字體就會(huì)變的很小,所以用px。
總結(jié)
以上是生活随笔為你收集整理的2. Using 'dp' instead of 'px' to set text size的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: android Ant批打包学习(零)-
- 下一篇: ios RunLoop 用法