Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Text Appearance in Android manifest file?

Is it possible to do the equivalent of

setTextAppearance(context, android.R.style.TextAppearance_Medium);

in the manifest file for an Android app?

like image 675
Curyous Avatar asked Nov 13 '09 03:11

Curyous


People also ask

How can I change text appearance in android?

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.

What is text appearance?

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.


1 Answers

android:textAppearance="?android:attr/textAppearanceMedium"
like image 102
Curyous Avatar answered Sep 21 '22 19:09

Curyous