{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class LayoutAssertions
A collection of layout ViewAssertions.
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
static ViewAssertion |
Returns a |
static ViewAssertion |
Returns a |
static ViewAssertion |
noOverlaps(Matcher<View> selector)Returns a |
static ViewAssertion |
Returns a |
public static ViewAssertion noEllipsizedText()
Returns a ViewAssertion that asserts that view hierarchy does not contain ellipsized or cut off text views.
public static ViewAssertion noMultilineButtons()
Returns a ViewAssertion that asserts that view hierarchy does not contain multiline buttons.
public static ViewAssertion noOverlaps(Matcher<View> selector)
Returns a ViewAssertion that asserts that descendant views matching the selector do not overlap each other.
Example: onView(rootView).check(noOverlaps(isAssignableFrom(TextView.class));
public static ViewAssertion noOverlaps()
Returns a ViewAssertion that asserts that descendant objects assignable to TextView or ImageView do not overlap each other.
Example: onView(rootView).check(noOverlaps());