title: How can i set LinearLayout into another LinearLayout programatically in android?
body: <p>I want to set the layout inside another layout programatically in android.</p>
  
  <p>Here, is my xml </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;LinearLayout
          android:baselineAligned="false"
          android:layout_width="fill_parent"
          android:layout_height="40dp"
          android:orientation="horizontal"&gt;
  
          &lt;LinearLayout
              android:id="@+id/Layout_second_overs"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="6"
              android:orientation="vertical"&gt;
  
              &lt;!--Second textview overs--&gt;
          &lt;/LinearLayout&gt;
          &lt;LinearLayout
              android:id="@+id/Layout_second_balls"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent" &gt;
  
              &lt;!--Second textview balls--&gt; //Here i want to put one linear layout.
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Please, help me to solve out this problem.</p>