title: How to add LinearLayout under another LinearLayout in a FrameLayout programmatically?
body: <pre><code>FrameLayout frameLayout = new FrameLayout(this);
  LinearLayout linearLayout1= new LinearLayout(this);
  LinearLayout linearLayout2= new LinearLayout(this);
  
  FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(
  LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
  
  params.gravity = Gravity.CENTER_VERTICAL;
  
  frameLayout.addView(linearLayout1, params);
  </code></pre>
  
  <p>how to add linearLayout2 under linearLayout1 </p>