# android.support.test.espresso.matcher

# android.support.test.espresso.matcher

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

## Classes

|--------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BoundedMatcher](https://developer.android.com/reference/android/support/test/espresso/matcher/BoundedMatcher)\<T, S extends T\>           | Some matcher sugar that lets you create a matcher for a given type but only process items of a specific subtype of that matcher.                                                                      |
| [CursorMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/CursorMatchers)                             | A collection of Hamcrest matchers that matches a data row in a[Cursor](https://developer.android.com/reference/android/database/Cursor.html).                                                         |
| [CursorMatchers.CursorMatcher](https://developer.android.com/reference/android/support/test/espresso/matcher/CursorMatchers.CursorMatcher) | A[Matcher](https://developer.android.com/reference/org/hamcrest/Matcher)that matches[Cursor](https://developer.android.com/reference/android/database/Cursor.html)s based on values in their columns. |
| [HasBackgroundMatcher](https://developer.android.com/reference/android/support/test/espresso/matcher/HasBackgroundMatcher)                 | Matcher to match[View](https://developer.android.com/reference/android/view/View.html)based on its background resource.                                                                               |
| [LayoutMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/LayoutMatchers)                             | A collection of hamcrest matches to detect typical layout issues.                                                                                                                                     |
| [PreferenceMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/PreferenceMatchers)                     | A collection of hamcrest matchers that match[Preference](https://developer.android.com/reference/android/preference/Preference.html)s.                                                                |
| [RootMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/RootMatchers)                                 | A collection of matchers for[Root](https://developer.android.com/reference/android/support/test/espresso/Root)objects.                                                                                |
| [ViewMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers)                                 | A collection of hamcrest matchers that match[View](https://developer.android.com/reference/android/view/View.html)s.                                                                                  |

## Enums

|----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| [ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility) | Enumerates the possible list of values for[getVisibility()](https://developer.android.com/reference/android/view/View.html#getVisibility()). |

-

  ## Classes

  - [BoundedMatcher](https://developer.android.com/reference/android/support/test/espresso/matcher/BoundedMatcher)
  - [CursorMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/CursorMatchers)
  - [CursorMatchers.CursorMatcher](https://developer.android.com/reference/android/support/test/espresso/matcher/CursorMatchers.CursorMatcher)
  - [HasBackgroundMatcher](https://developer.android.com/reference/android/support/test/espresso/matcher/HasBackgroundMatcher)
  - [LayoutMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/LayoutMatchers)
  - [PreferenceMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/PreferenceMatchers)
  - [RootMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/RootMatchers)
  - [ViewMatchers](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers)
-

  ## Enums

  - [ViewMatchers.Visibility](https://developer.android.com/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility)