I\'m calling the following in the constructor of my custom view:
private void style(Resources.Theme theme, AttributeSet attrs) {
TypedArray a = theme.obtainS
Try the following instead:
line1Size = a.getDimensionPixelSize(R.styleable.StackedTextView_line1_textSize, 0);
line2Size = a.getDimensionPixelSize(R.styleable.StackedTextView_line2_textSize, 0);
if (line1Size > 0) {
holdr.textLine1.setTextSize(TypedValue.COMPLEX_UNIT_PX, line1Size);
}
if (line2Size > 0) {
holdr.textLine2.setTextSize(TypedValue.COMPLEX_UNIT_PX, line2Size);
}