Filters
public final class Filters
Summary
Public methods |
|
|---|---|
static final @NonNull LayoutElementMatcher |
containsTag(@NonNull String value)Returns a |
static final @NonNull LayoutElementMatcher |
hasAllCorners(float radiusDp)Returns a |
static final @NonNull LayoutElementMatcher |
hasBottomLeftCorner(float xRadiusDp, float yRadiusDp)Returns a |
static final @NonNull LayoutElementMatcher |
hasBottomRightCorner(float xRadiusDp, float yRadiusDp)Returns a |
static final @NonNull LayoutElementMatcher |
hasChild(@NonNull LayoutElementMatcher matcher)Returns a |
static final @NonNull LayoutElementMatcher |
hasClickable(Returns a |
static final @NonNull LayoutElementMatcher |
Returns a |
static final @NonNull LayoutElementMatcher |
hasContentDescription(@NonNull Regex pattern)Returns a |
static final @NonNull LayoutElementMatcher |
hasContentDescription(@NonNull String value)Returns a |
static final @NonNull LayoutElementMatcher |
hasDescendant(@NonNull LayoutElementMatcher matcher)Returns a |
static final @NonNull LayoutElementMatcher |
Returns a |
static final @NonNull LayoutElementMatcher |
Returns a |
static final @NonNull LayoutElementMatcher |
Returns a |
static final @NonNull LayoutElementMatcher |
Returns a |
static final @NonNull LayoutElementMatcher |
|
static final @NonNull LayoutElementMatcher |
hasTopLeftCorner(float xRadiusDp, float yRadiusDp)Returns a |
static final @NonNull LayoutElementMatcher |
hasTopRightCorner(float xRadiusDp, float yRadiusDp)Returns a |
static final @NonNull LayoutElementMatcher |
Returns a |
static final @NonNull LayoutElementMatcher |
Returns a |
static final @NonNull LayoutElementMatcher |
Returns a |
static final @NonNull LayoutElementMatcher |
Returns a |
Public methods
containsTag
public static final @NonNull LayoutElementMatcher containsTag(@NonNull String value)
Returns a LayoutElementMatcher which checks whether the element's metadata tag contains the given value.
hasAllCorners
public static final @NonNull LayoutElementMatcher hasAllCorners(float radiusDp)
Returns a LayoutElementMatcher which checks whether the element has all its four corners with the given radius.
hasBottomLeftCorner
public static final @NonNull LayoutElementMatcher hasBottomLeftCorner(float xRadiusDp, float yRadiusDp)
Returns a LayoutElementMatcher which checks whether the element has its bottom left corner with the given radii.
hasBottomRightCorner
public static final @NonNull LayoutElementMatcher hasBottomRightCorner(float xRadiusDp, float yRadiusDp)
Returns a LayoutElementMatcher which checks whether the element has its bottom right corners with the given radii.
hasChild
public static final @NonNull LayoutElementMatcher hasChild(@NonNull LayoutElementMatcher matcher)
Returns a LayoutElementMatcher which checks whether the element has a child matching the given matcher.
hasClickable
public static final @NonNull LayoutElementMatcher hasClickable(
@NonNull ActionBuilders.Action action,
String id,
@Dimension(unit = 0) float minClickableWidth,
@Dimension(unit = 0) float minClickableHeight
)
Returns a LayoutElementMatcher which checks whether the element has the specific Clickable attached.
hasColor
public static final @NonNull LayoutElementMatcher hasColor(@ColorInt int argb)
Returns a LayoutElementMatcher which checks whether the element is drawn with the given color.
hasContentDescription
public static final @NonNull LayoutElementMatcher hasContentDescription(@NonNull Regex pattern)
Returns a LayoutElementMatcher which checks whether the element's content description matches the given pattern.
hasContentDescription
public static final @NonNull LayoutElementMatcher hasContentDescription(@NonNull String value)
Returns a LayoutElementMatcher which checks whether the element's content description contains the given value.
hasDescendant
public static final @NonNull LayoutElementMatcher hasDescendant(@NonNull LayoutElementMatcher matcher)
Returns a LayoutElementMatcher which checks whether the element has a descendant matches the given matcher.
hasHeight
public static final @NonNull LayoutElementMatcher hasHeight(@NonNull DimensionBuilders.ContainerDimension height)
Returns a LayoutElementMatcher which checks whether the element has the given height value.
hasHeight
public static final @NonNull LayoutElementMatcher hasHeight(@NonNull DimensionBuilders.ProportionalDimensionProp height)
Returns a LayoutElementMatcher which checks whether the element has the given height value.
hasImage
public static final @NonNull LayoutElementMatcher hasImage(@NonNull String protolayoutResId)
Returns a LayoutElementMatcher which checks whether the element displays an image with the given protolayout resource id.
hasTag
public static final @NonNull LayoutElementMatcher hasTag(@NonNull String value)
Returns a LayoutElementMatcher which checks whether the element's metadata tag equals to the given value.
hasText
public static final @NonNull LayoutElementMatcher hasText(@NonNull String value, boolean subString, boolean ignoreCase)
hasTopLeftCorner
public static final @NonNull LayoutElementMatcher hasTopLeftCorner(float xRadiusDp, float yRadiusDp)
Returns a LayoutElementMatcher which checks whether the element has its top left corner with the given radii.
hasTopRightCorner
public static final @NonNull LayoutElementMatcher hasTopRightCorner(float xRadiusDp, float yRadiusDp)
Returns a LayoutElementMatcher which checks whether the element has its top right corner with the given radii.
hasWidth
public static final @NonNull LayoutElementMatcher hasWidth(@NonNull DimensionBuilders.ContainerDimension width)
Returns a LayoutElementMatcher which checks whether the element has the given width value.
hasWidth
public static final @NonNull LayoutElementMatcher hasWidth(@NonNull DimensionBuilders.ProportionalDimensionProp width)
Returns a LayoutElementMatcher which checks whether the element has the given width value.
isClickable
public static final @NonNull LayoutElementMatcher isClickable()
Returns a LayoutElementMatcher which checks whether the element is clickable.
isSemanticsHeading
public static final @NonNull LayoutElementMatcher isSemanticsHeading()
Returns a LayoutElementMatcher which checks whether the element is marked as heading for accessibility purpose.