super(context, attrs, defStyle);
boolean allCaps = false;
TypedArray style = context
.obtainStyledAttributes(attrs, R.styleable.CompatTextView, defStyle, 0);
allCaps = style.getBoolean(R.styleable.CompatTextView_textAllCaps, false);
style.recycle();
// Framework impl also checks TextAppearance for textAllCaps. This isn't needed for our
// purposes so has been omitted.
if (allCaps) {
setTransformationMethod(new AllCapsTransformationMethod(context));
}