Skip to content

Most visited

Recently visited

navigation

LayoutMatchers

public final class LayoutMatchers
extends Object

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


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.

Inherited methods

From class java.lang.Object

Public methods

hasEllipsizedText

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.

Returns
Matcher

hasMultilineText

Matcher hasMultilineText ()

Matches TextView elements having multiline text.

Returns
Matcher
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.