hat is the correct way to make the changes visible onscreen after having programatically changed the font of some TextView’s Paint objects ?
@Override
protected void onResume()
{
super.onResume();
mMainController.grads(mLytHowToPlay, true, FaceTypes.FACEIT, GradTypes.NONE, 8);
mLytHowToPlay.requestLayout();
mLytHowToPlay.invalidate();
}
The grads() method call above is the one that recursively treats mLytHowToPlay’s children and makes changes to their Paint objects. I have also tried this sequence from onCreate() and onStart() with the same effect – changes are not made visible until the Activity gets navigated away from and then navigated back to again.
Thank you!
See Simon’s answer here and my comment to it. What I was been looking for was actually a callback triggered just after the layout process completed.