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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -