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
semeTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getResources().getDimension(R.dimen.text_size_in_dp))