FileDocCategorySizeDatePackage
CompatTextView.javaAPI DocAndroid 5.1 API1940Thu Mar 12 22:22:56 GMT 2015android.support.v7.internal.widget

CompatTextView

public class CompatTextView extends android.widget.TextView
hide

Fields Summary
Constructors Summary
public CompatTextView(android.content.Context context)

        this(context, null);
    
public CompatTextView(android.content.Context context, android.util.AttributeSet attrs)

        this(context, attrs, 0);
    
public CompatTextView(android.content.Context context, android.util.AttributeSet attrs, int defStyle)

        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));
        }
    
Methods Summary