title: How to reuse Android XML layouts with minor differences?
body: <p>Let's say i have the Android XML file <code>home_page.xml</code>. </p>
  
  <p>on this <code>home_page.xml</code> i have some variations that i want to show at different activities, and i'd like to reuse the same main layout <code>home_page.xml</code>.</p>
  
  <p>For example, imagine variations on the page such as:</p>
  
  <ol>
  <li>there's 2 more buttons if the user is in state A</li>
  <li>there's 1 more editText field if the user is in state B (same activity as state A)</li>
  <li>there's a different arrangement of layout on the Z-axis in a frame layout if the user is in state C (same activity as state A)</li>
  </ol>
  
  <p>i know it's possible to programmatically say hide views and set views as visible. but is there a better way to do this via xml or something?</p>