public class EspAppBarLayout extends EspView
Action and assertions for AppBarLayouts.
Support for CollapsingToolbarLayout
| Constructor and Description |
|---|
EspAppBarLayout(EspView template)
Create new instance based on given element matcher.
|
EspAppBarLayout(int resourceId)
Create new instance matching an element with given resourceId.
|
EspAppBarLayout(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertIsCollapsed()
Check if the app bar layout is full expanded.
|
void |
assertIsExpanded()
Check if the app bar layout is full expanded.
|
static EspAllOfBuilder<? extends EspAppBarLayout> |
byAll()
Create an allOf matcher builder for this element.
|
static EspAppBarLayout |
byId(int resourceId)
Create new instance matching an element with given resourceId.
|
void |
collapse()
Collapse the app bar layout programmatically.
|
void |
expand()
Expand the app bar layout programmatically.
|
assertIsDisabled, assertIsDisplayedOnScreen, assertIsEnabled, assertIsHidden, assertIsNotSelected, assertIsPartiallyDisplayedOnly, assertIsPartiallyDisplayedOnScreen, assertIsSelected, assertIsVisible, assertNotExist, baseMatcher, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUppublic EspAppBarLayout(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public EspAppBarLayout(org.hamcrest.Matcher<android.view.View> base)
Create new element instance with custom base matcher.
base - Matcher for this element.public EspAppBarLayout(EspView template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspAppBarLayout byId(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public static EspAllOfBuilder<? extends EspAppBarLayout> byAll()
Create an allOf matcher builder for this element.
public void collapse()
Collapse the app bar layout programmatically.
public void expand()
Expand the app bar layout programmatically.
public void assertIsExpanded()
Check if the app bar layout is full expanded.
public void assertIsCollapsed()
Check if the app bar layout is full expanded.