Stay organized with collections Save and categorize content based on your preferences.

LayoutMatchers

public final class LayoutMatchers


A collection of hamcrest matches to detect typical layout issues.

Summary

Public constructors

Public methods

static Matcher<View>

Matches TextView elements having ellipsized text.

static Matcher<View>

Matches TextView elements having multiline text.

Public constructors

LayoutMatchers

public LayoutMatchers()

Public methods

hasEllipsizedText

public static Matcher<View> 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.

hasMultilineText

public static Matcher<View> hasMultilineText()

Matches TextView elements having multiline text.