Closed Narinc closed 4 years ago
@Narinc you should use actual setter that is in code, not the xml attr in this case try app:expanded
Thanks @paulkugaev I forgot that the Android tools still don't support custom XML attributes for databinding.
@cachapa why "still"? Databinding is about code, custom view attrs is not code. Thats why in databinding we use the actual method name without "set" (if method is setExpanded then in databinding it'll be just app:expanded). Custom view attrs won't work at all coz they are used only in view constructor. Databinding is about bringing code into xml
app:el_expanded="@{model.selectedPayOption.get() == PayOption.WITHOUT_CARD ? true : false}"