dpi value of default "large", "medium" and "small" text views android

Viewed 147478

Does the documentation ( or anyone) talks about the dpi values of the default

  • Large TextView {android:textAppearance="?android:attr/textAppearanceLarge"}
  • Medium TextView {android:textAppearance="?android:attr/textAppearanceMedium"}
  • Small TextView { android:textAppearance="?android:attr/textAppearanceSmall"}

widgets in the SDK ?

The Large, medium, small and regular text views

To put it in another way, can we replicate the appearance of these text views without using the android:textAppearance attribute?

3 Answers

Programmatically, you could use:

textView.setTextAppearance(android.R.style.TextAppearance_Large);
Related