title: Android Data Binding: Is there a good way to show / hide an includes tag?
body: <p>I have just begun to mess around with data binding in android. Ideally I would like to have a root xml file that contains some generic xml elements and then its inner contents can be one of three xml files something like this</p>
  
  <pre><code>&lt;data&gt;
    &lt;variable name="action" type="com.example.android.action"/&gt;
  &lt;/data&gt;
  
  &lt;TextView&gt;
  &lt;TextView&gt;
  &lt;!--Only show one of these includes based on the binding data--&gt;
  
  &lt;!-- if action.item --&gt;
  &lt;include layout="item.xml"
   bind:item="@{action.item}"&gt;
  
  &lt;!-- else if action.udpate --&gt;
  &lt;include layout="update.xml"
   bind:update="@{action.update}"&gt;
  
  &lt;!-- else if action.video --&gt;
  &lt;include layout="video.xml"
   bind:video="@{action.video}"&gt;
  
  &lt;TextView&gt;
  ... etc
  </code></pre>
  
  <p>So basically based on what child object exists inside of action (either item, update or video) show the layout for it and bind the view but do not show the other includes. Should I just use android's <code>View:Visibility</code> or is there something with includes that I am overlooking? </p>