locke07/29/2019, 11:27 PM
Mark Murphy07/29/2019, 11:31 PM
look like? https://gitlab.com/commonsguy/cw-andexplore/blob/v0.7/T15-Display/ToDo/app/src/main/java/com/commonsware/todo/BindingAdapters.kt is an example one in Kotlin, which I use at https://gitlab.com/commonsguy/cw-andexplore/blob/v0.7/T15-Display/ToDo/app/src/main/res/layout/todo_display.xml#L64
locke07/29/2019, 11:34 PM
rather than a subtype isnt allowed. But I have done so before...
Mark Murphy07/29/2019, 11:37 PM
should be fine. Anything unusual about the binding expression in the layout? For example, are you not matching on data types for the value?
locke07/29/2019, 11:42 PM
Mark Murphy07/29/2019, 11:44 PM
and see if that works. It has to be a binding expression with the
syntax, as the data binding system ignores ordinary XML attributes. I have not tried a boolean constant as the binding expression, though.
Will Shelor07/30/2019, 12:34 AM
Mark Murphy07/30/2019, 11:13 AM
-- in this case, it's a constant
locke07/30/2019, 9:33 PM