title: Android activity dynamic layout updates
body: <p>I am trying to create a small Android App. The app will have four modes. The top part of the display will contain four buttons to switch between these modes, and this part of the display will not change.  The rest of the display will change depending which button has been clicked on. It will contain a table with <code>TextViews</code> or images. </p>
  
  <p>My questions are:</p>
  
  <ul>
  <li><p>Is it possible to create the table layout programmatically?</p></li>
  <li><p>How should I approach switching between modes:-</p>
  
  <ol>
  <li>Four separate <code>Activity</code> classes?</li>
  <li>One <code>Activity</code> and programmatically change the bottom part of it?</li>
  <li>Should I create one base <code>Activity</code> with buttons and extend it? </li>
  </ol></li>
  </ul>
  
  <p>What would be the best option?</p>