Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# android.support.test.espresso.matcher\n=====================================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BoundedMatcher](/reference/android/support/test/espresso/matcher/BoundedMatcher)\\\u003cT, S extends T\\\u003e | Some matcher sugar that lets you create a matcher for a given type but only process items of a specific subtype of that matcher. |\n| [CursorMatchers](/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). |\n| [CursorMatchers.CursorMatcher](/reference/android/support/test/espresso/matcher/CursorMatchers.CursorMatcher) | A [Matcher](/reference/org/hamcrest/Matcher) that matches [Cursor](https://developer.android.com/reference/android/database/Cursor.html)s based on values in their columns. |\n| [HasBackgroundMatcher](/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. |\n| [LayoutMatchers](/reference/android/support/test/espresso/matcher/LayoutMatchers) | A collection of hamcrest matches to detect typical layout issues. |\n| [PreferenceMatchers](/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. |\n| [RootMatchers](/reference/android/support/test/espresso/matcher/RootMatchers) | A collection of matchers for [Root](/reference/android/support/test/espresso/Root) objects. |\n| [ViewMatchers](/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. |\n\nEnums\n-----\n\n|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [ViewMatchers.Visibility](/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()). |\n\n-\n\n Classes\n -------\n\n - [BoundedMatcher](/reference/android/support/test/espresso/matcher/BoundedMatcher)\n - [CursorMatchers](/reference/android/support/test/espresso/matcher/CursorMatchers)\n - [CursorMatchers.CursorMatcher](/reference/android/support/test/espresso/matcher/CursorMatchers.CursorMatcher)\n - [HasBackgroundMatcher](/reference/android/support/test/espresso/matcher/HasBackgroundMatcher)\n - [LayoutMatchers](/reference/android/support/test/espresso/matcher/LayoutMatchers)\n - [PreferenceMatchers](/reference/android/support/test/espresso/matcher/PreferenceMatchers)\n - [RootMatchers](/reference/android/support/test/espresso/matcher/RootMatchers)\n - [ViewMatchers](/reference/android/support/test/espresso/matcher/ViewMatchers)\n-\n\n Enums\n -----\n\n - [ViewMatchers.Visibility](/reference/android/support/test/espresso/matcher/ViewMatchers.Visibility)"]]