how to change text size of textview with code in android studio

Java
textView.setTextAppearance(getActivity(), R.style.fontForNotificationLandingPage);

Source

Also in Java: