Ex 15: Not able to get string resources using Application class
vikas-appdev opened this issue · comments
Vikas Kumar commented
Below line of code not able to string giving error "unresolve reference string"
val displayPropertyPrice = Transformations.map(selectedProperty) { app.applicationContext.getString( when (it.isRental) { true -> R.string.display_price_monthly_rental false -> R.string.display_price }, it.price) }