Search code examples
androidtextview

TextAppearance property of TextView in Android


I am working on android application where I am using TextView to display the text on screens.

I am using this property for the TextView to set the size of the text android:textAppearance="?android:attr/textAppearanceMedium".

Do I need to set the size of that text also or it does automatically manage by Android OS ?

Thanks in advance.


Solution

  • In Android text elements there is a default which is applied first (similar to webpages). If you wish to override those and define your own, then you must explicitly set them. android:textAppearance is one such override, but there are other attributes you can override individually (as opposed to as an aggregate)... you'll want to see the documentation for that.