ChipDrawableMatcher

public final class ChipDrawableMatcher extends TypeSafeMatcher<View>

Matches given drawable with current one for the chipIconType drawable type.

Parameters

resId

Drawable resource to be matched (default is -1)

drawable

Drawable instance to be matched (default is null)

chipIconType

drawable type to verify against

tintColorId

Tint color resource id (default is null)

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)

Constructors

Link copied to clipboard
public ChipDrawableMatcher ChipDrawableMatcher(@DrawableRes() Integer resId, Drawable drawable, ChipIconType chipIconType, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)

Functions

Link copied to clipboard
public final Unit describeMismatch(Object p0, Description p1)
Link copied to clipboard
public Unit describeTo(Description desc)
Link copied to clipboard
public final Boolean matches(Object p0)
Link copied to clipboard
public String toString()