If I assign an integer value to change a certain text size of a TextView using java code, the value is interpreted as pixel (px).
TextView
px
Now does
This is code for the convert PX to SP format. 100% Works
view.setTextSize(TypedValue.COMPLEX_UNIT_PX, 24);