FileDocCategorySizeDatePackage
ExceptionTextView.javaAPI DocAndroid 1.5 API2023Wed May 06 22:42:02 BST 2009com.android.frameworktest.layout.linear

ExceptionTextView

public class ExceptionTextView extends android.widget.EditText
A special EditText that sets {@link #isFailed()} to true as its internal makeNewLayout() method is called with a width lower than 0. This is used to fail the unit test in BaselineAlignmentZeroWidthAndWeightTest.

Fields Summary
private boolean
mFailed
Constructors Summary
public ExceptionTextView(android.content.Context context)


       
        super(context);
    
public ExceptionTextView(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
    
public ExceptionTextView(android.content.Context context, android.util.AttributeSet attrs, int defStyle)

        super(context, attrs, defStyle);
    
Methods Summary
public booleanisFailed()

        return mFailed;
    
protected voidmakeNewLayout(int w, int hintWidth, BoringLayout.Metrics boring, BoringLayout.Metrics hintMetrics, int ellipsizedWidth, boolean bringIntoView)

        if (w < 0) {
            mFailed = true;
            w = 100;
        }

        super.makeNewLayout(w, hintWidth, boring, hintMetrics, ellipsizedWidth,
                            bringIntoView);