In my layout I have a checkbox, which should toggle the enabled state of a different view. This means, the checked value of one view, should be bound to the enabled value of a different view.
To me this sounds like a perfect use case for the new data binding library, which should be a simple line in xml in my opinion, without having to use Java code. Something like android:enabled="@{(@id/chk_enabled).isChecked()}" I'm thinking. Sadly enough this isn't valid, and I can't find any information on how to do this correctly.
That's why I'm wondering, is this even possible?