As you probably know you should set TextSizes in sp units (other dimensions in dp). It is scale-independent pixels.
So, you should set in your dimens file
dimen name="month">32sp
Programatically you can set this textsize by
textview_name.setTextSize(TypedValue.COMPLEX_UNIT_PX, getResources().getDimension(R.dimen.month));
Other combination incorrect.