In Android, is there a way to bind a screen element's visibility to a boolean property within an activity? I've done a lot of work with Backbone and Ember where this was easily doable. I'm following the standard methodology of toggling button states based on applicable responses from the server, but my code feels overly verbose and clumsy compared to what I was able to achieve with web frameworks.
Is there a nice way for a view to watch a property, and have it update its visibility based on the value of that property?
Basically I would like to have my API calls update a property in my activity (or an associated data model), and have the visibility logic just flow automatically, without manually toggling the visibility of elements myself.