{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class LayoutMatchers
A collection of hamcrest matches to detect typical layout issues.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static Matcher<View!>! |
Matches TextView elements having ellipsized text. |
java-static Matcher<View!>! |
Matches TextView elements having multiline text. |
java-static fun hasEllipsizedText(): Matcher<View!>!
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.
java-static fun hasMultilineText(): Matcher<View!>!
Matches TextView elements having multiline text.