Package com.stripe.android.camera.scanui.util

Functions

Link copied to clipboard
inline fun <T : View> T.addConstraints(parent: ConstraintLayout, block: ConstraintSet.(view: T) -> Unit)

Add constraints to a view.

Link copied to clipboard
fun View.asRect(): Rect

Get a rect from a view.

Link copied to clipboard
fun <T : View> T.constrainToParent(parent: ConstraintLayout)

Constrain a view to the top, bottom, start, and end of its parent.

Link copied to clipboard
fun ImageView.setDrawable(@DrawableRes drawableRes: Int)

Set the image of an ImageView using a DrawableRes.

Link copied to clipboard
fun ImageView.startAnimation(@DrawableRes drawableRes: Int)

Set the image of an ImageView using a DrawableRes and start the animation.

Link copied to clipboard
fun ImageView.startAnimationIfNotRunning(@DrawableRes drawableRes: Int)