Summary: Methods | Inherited Methods | [Expand All]

# LayoutAssertions

`public final class LayoutAssertions`
`extends Object` ``

java.lang.Object
↳ | android.support.test.espresso.assertion.LayoutAssertions

A collection of layout `ViewAssertion`s.

## Summary

### Public methods
`static ViewAssertion` | `noEllipsizedText()` Returns a `ViewAssertion` that asserts that view hierarchy does not contain ellipsized or cut off text views.
`static ViewAssertion` | `noMultilineButtons()` Returns a `ViewAssertion` that asserts that view hierarchy does not contain multiline buttons.
`static ViewAssertion` | `noOverlaps(Matcher<View> selector)` Returns a `ViewAssertion` that asserts that descendant views matching the selector do not overlap each other.
`static ViewAssertion` | `noOverlaps()` Returns a `ViewAssertion` that asserts that descendant objects assignable to TextView or ImageView do not overlap each other.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()`
`boolean` | `equals(Object arg0)`
`void` | `finalize()`
`final Class<?>` | `getClass()`
`int` | `hashCode()`
`final void` | `notify()`
`final void` | `notifyAll()`
`String` | `toString()`
`final void` | `wait(long arg0, int arg1)`
`final void` | `wait(long arg0)`
`final void` | `wait()`

## Public methods

### noEllipsizedText

    ViewAssertion noEllipsizedText ()

Returns a `ViewAssertion` that asserts that view hierarchy does not contain ellipsized or cut off text views.

Returns
`ViewAssertion` |

### noMultilineButtons

    ViewAssertion noMultilineButtons ()

Returns a `ViewAssertion` that asserts that view hierarchy does not contain multiline buttons.

Returns
`ViewAssertion` |

### noOverlaps

    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));

Parameters
`selector` | `Matcher`

Returns
`ViewAssertion` |

### noOverlaps

    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())

Returns
`ViewAssertion` |

- ## Classes

  - LayoutAssertions
  - PositionAssertions
  - ViewAssertions