Is it possible to do the equivalent of
setTextAppearance(context, android.R.style.TextAppearance_Medium);
in the manifest file for an Android app?
TextAppearance is set by android:textAppearance attribute on the TextView . android:textAppearance attribute works the same with style attribute. The main difference is the precedence order of them. style takes precedence over android:textAppearance meaning that style will always override the common attributes.
android:text="This text is styled via textAppearance!" /> TextAppearance allows you to define text-specific styling while leaving a View 's style available for other uses. Note, however, that if you define any text attributes directly on the View or in a style, those values would override the TextAppearance values.
android:textAppearance="?android:attr/textAppearanceMedium"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With