public final class

LayoutMatchers

extends Object
java.lang.Object
   ↳ android.support.test.espresso.matcher.LayoutMatchers

Class Overview

A collection of hamcrest matches to detect typical layout issues.

Summary

Public Methods
static Matcher hasEllipsizedText()
Matches TextView elements having ellipsized text.
static Matcher hasMultilineText()
Matches TextView elements having multiline text.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Matcher hasEllipsizedText ()

Matches TextView elements having ellipsized text. If text is too long to fit into a TextView, it can be either ellipsized ('Too long' shown as 'Too l…' or '… long') or cut off ('Too long' shown as 'Too l'). Though acceptable in some cases, usually indicates bad user experience.

public static Matcher hasMultilineText ()

Matches TextView elements having multiline text.