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

Extensions for android.widget.TextView

bindDepotQuote

Sets the text of a TextView depending on a DepotQuote's symbol and amount.

fun TextView.bindDepotQuote(depotQuote: DepotQuote?): Unit

bindDepotQuoteText

Sets the text of a TextView depending on a DepotQuote's amount.

fun TextView.bindDepotQuoteText(depotQuote: DepotQuote?): Unit

bindDepotQuoteTotalValue

Sets text of a TextView to the total depot value if quote available in depot.

fun TextView.bindDepotQuoteTotalValue(depotQuotePurchase: DepotQuote?, quote: Quote?): Unit

bindPerformanceText

Sets the text and color of a TextView to represent a positive, neutral or negative change.

fun TextView.bindPerformanceText(change: Double?): Unit

bindQuoteChange

Sets the text of a TextView and handles null values.

fun TextView.bindQuoteChange(change: Double?): Unit

bindQuotePrice

Sets the text of a TextView depending on a Quote.

fun TextView.bindQuotePrice(quote: Quote?): Unit

bindStockbrotQuote

Sets the text of a TextView depending on a StockbrotQuote.

fun TextView.bindStockbrotQuote(stockbrotQuote: StockbrotQuote): Unit

bindTransaction

Sets the text of a TextView depending on a Transaction's amount.

fun TextView.bindTransaction(transaction: Transaction?): Unit

bindTransactionResultText

Sets the text and color of a TextView to represent a positive, neutral or negative cashflow.

fun TextView.bindTransactionResultText(effectiveCashflow: Double?): Unit