How do we change the textSize based on Resolution density?
I have found several ways on SO, but all of them usng java code to do that.
I however need a java free approach because I have someplaces where I set a textSize on XML and some on Java code.
In xml, I do this
android:textSize="@dimen/FONT_SIZE_SMALL"
however sometimes I need to set it via java code.
textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, getResources().getDimension(R.dimen.FONT_SIZE_SMALL);
Any ideas please? is it doable?