ViewActions to interact RecyclerView. RecyclerView works differently than AdapterView. In fact, RecyclerView is not an AdapterView anymore, hence it can't be used in
combination with onData(Matcher).
This approach uses RecyclerView.ViewHolders to find the target view. It will create one
ViewHolder per item type and bind adapter data to the ViewHolder. If the itemViewMatcher
matches a ViewHolder the current position of the View is used to perform a scrollToPosition(int).
Returns a ViewAction which scrolls RecyclerView to the view matched by
viewHolderMatcher.
This approach uses RecyclerView.ViewHolders to find the target view. It will create one
ViewHolder per item type and bind adapter data to the ViewHolder. If the itemViewMatcher
matches a ViewHolder the current position of the View is used to perform a scrollToPosition(int). Note: scrollTo method is not overloaded, method
overloading with generic parameters is not possible.
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."],[],[]]