app / de.uniks.codliners.stock_simulator.ui / android.widget.ImageView

Extensions for android.widget.ImageView

bindPaywallType

Binds a paywall indicator to the image view, which displays a money symbol.

fun ImageView.bindPaywallType(paywallType: Boolean?): Unit

bindTransactionType

Sets the image of an ImageView depending on a TransactionType.

fun ImageView.bindTransactionType(transactionType: TransactionType?): Unit

bindTrendImage

Sets the image and color of an ImageView to represent a positive, neutral or negative change.

fun ImageView.bindTrendImage(change: Double?): Unit