-
-
Save kozmi55/0edda91310c24d510d6441f896cd0f80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CarAdViewModel( | |
val make: String, | |
val model: String, | |
val price: String, | |
@get:Bindable var borderColor: Int | |
) : BaseObservable(), ItemViewModel { | |
override val layoutId: Int = R.layout.item_car_listing_ad | |
override val viewType: Int = CarListViewModel.AD_ITEM | |
fun onCarPriceClick() { | |
borderColor = getRandomColor() | |
notifyPropertyChanged(BR.borderColor) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment