title: LinearLayout add a view above the other views Android
body: <p>I would like to add a view to the top of my linear layout. The following code is adding my view to the end of the application layout.</p>
  
  <pre><code>LinearLayout layout = (LinearLayout)findViewById(R.id.root);
  layout.addView(adView);
  </code></pre>
  
  <p>How do I update this code so that my adView is at the top of my app?</p>