android - Fonts have different physical sizes on different displays even when sizes are setted in SP -


i'm testing app on 2 devices. first htc 1 s have 540x960 4.3 inches display , 256ppi. second sony miro - 320x480, 165ppi, 3.5 inches.

in app set font sizes "sp" units, should provide density-independence , make fonts looks same on display:

 <style name = "whitetextmedium" parent="@android:style/textappearance.medium">     <item name="android:textcolor">@color/white</item>     <item name="android:textsize">16sp</item> </style> 

but got fonts on sony phone bigger on htc one.

how make them same? or not getting how should work? compared font sizes on these 2 devices in other apps , on both devices fonts have same physical sizes.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -