I would like to retrieve the int value of textApperanceLarge in code. I believe that the below code is going in the right direction, but can’t figure out how to extract the int value from the TypedValue.
TypedValue typedValue = new TypedValue();
((Activity)context).getTheme().resolveAttribute(android.R.attr.textAppearanceLarge, typedValue, true);
Your code only gets the resource ID of the style that the textAppearanceLarge attribute points to, namely TextAppearance.Large as Reno points out.
To get the textSize attribute value from the style, just add this code:
Now textSize will be the text size in pixels of the style that textApperanceLarge points to, or -1 if it wasn’t set. This is assuming typedValue.type was of type TYPE_REFERENCE to begin with, so you should check that first.
The number 16973890 comes from the fact that it is the resource ID of TextAppearance.Large