locke
07/29/2019, 11:27 PMMark Murphy
07/29/2019, 11:31 PMBindingAdapter 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#L64locke
07/29/2019, 11:34 PMlocke
07/29/2019, 11:35 PMlocke
07/29/2019, 11:36 PMView rather than a subtype isnt allowed. But I have done so before...Mark Murphy
07/29/2019, 11:37 PMView should be fine. Anything unusual about the binding expression in the layout? For example, are you not matching on data types for the value?locke
07/29/2019, 11:42 PMapp:pcuDefault="true"Mark Murphy
07/29/2019, 11:44 PMapp:pcuDefault="@{true}" 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 Shelor
07/30/2019, 12:34 AMWill Shelor
07/30/2019, 12:34 AMMark Murphy
07/30/2019, 11:13 AMLiveData -- in this case, it's a constantlocke
07/30/2019, 9:33 PM