If I set the font size directly in xml, then everything is displayed normally.
android:textSize="@dimen/textMM" If I set it programmatically, the font is huge:
actFontSize = getResources().getDimension(R.dimen.textMM); btn.setTextSize(actFontSize); I have a few dimens.xml with sizes depending on the width of the screen. Whether in a software task, he takes it from another folder, or I’ve got it somewhere.