ExceptionTextViewpublic 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 |
Methods Summary |
---|
public boolean | isFailed()
return mFailed;
| protected void | makeNewLayout(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);
|
|