package Ġme . yc dev . android . lib . test . ui Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . widget . Horizontal ScrollView Ċ import Ġandroid . widget . ListView Ċ import Ġandroid . widget . ScrollView Ċ import Ġandroidx . core . widget . Nested ScrollView Ċ import Ġandroidx . test . espress o . View Action Ċ import Ġandroidx . test . espress o . action . View Actions Ċ import Ġandroidx . test . espress o . matcher . View Matchers Ċ import Ġandroidx . test . espress o . matcher . View Matchers . is Desc endant Of A Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Effective Visibility Ċ import Ġorg . hamcrest . Core Matchers . all Of Ċ import Ġorg . hamcrest . Core Matchers . any Of Ċ import Ġorg . hamcrest . Matcher Ċ Ċ class ĠScroll Views Action ( scrollTo : ĠView Action Ġ= ĠView Actions . scrollTo ()) Ġ: ĠView Action Ġby Ġscroll To Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġget Constraints (): ĠMatcher < View > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġall Of ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġwith Effective Visibility ( View Matchers . Visibility . VISIBLE ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis Desc endant Of A ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġany Of ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . isAssignableFrom ( Nested ScrollView :: class . java ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . isAssignableFrom ( ScrollView :: class . java ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . isAssignableFrom ( Horizontal ScrollView :: class . java ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . isAssignableFrom ( ListView :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ } Ċ