android - Switch case in Data Binding -
is possible write switch case android data binding?
suppose have 3 conditions like
value == 1 print value == 2 print b value == 3 print c
does there way stuff in xml using data binding?
i know can implement conditional statement like
android:visibility="@{age < 13 ? view.gone : view.visible}"
but here searching switch case statement.
no, far know not possible , make xml files unreadable. think better implement in business logic, not in layout files.
Comments
Post a Comment