title: How do I shift a View under another View in LinearLayout?
body: <p>I cannot seem to find the right keywords for my question. Not to be confused with XML Layout editing, can I programmatically shift one <code>View</code> under another <code>View</code> in real-time inside a <code>LinearLayout</code> container?</p>
  
  <p>Here is my main layout XML file. It is as easy as just dragging the two buttons to the UI editor and naming them:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:background="#000000"
      android:id="@+id/main_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context=".MainActivity"&gt;
  
      &lt;Button
          android:id="@+id/button1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="Button 1" /&gt;
  
      &lt;Button
          android:id="@+id/button2"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="Button 2" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Let's say I did something in my app and suddenly <code>button1</code> shifted below <code>button2</code> and <code>button2</code> went up. How can I make that happen? Does something like <code>my1Button.shiftDown();</code> or similar even exist?</p>