icerockdev / moko-mvvm

Model-View-ViewModel architecture components for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
997 stars 95 forks source link

Provide bindings for moko-resources #67

Open RezMike opened 3 years ago

RezMike commented 3 years ago

Provide data bindings for ImageResource and ColorResource (background, src, etc.)

Alex009 commented 3 years ago

@RezMike hi! please show more informative suggestion :) what exactly bindings you want to see?

RezMike commented 3 years ago

@Alex009 If I remember correctly, I found a case where I needed bindings for setting ImageResource as ImageView's android:src and ColorResource as ImageView's android:background. I think there may be other related cases like setting ImageResource as ImageView's android:background, but I haven't needed it yet.