XML is not edited at run time, so you may need to set a static value for the font size, and then manually set them to applicaiton.
For instance..
public static int defaultFontSize = defaultValue;
//Update the value when the user changes font..
ClassName (class where you declared the static variable).defaultFontSize = 10;
textView.setTextSize(ClassName.defaultFontSize);
source
share