title: create layout through code
body: <p>I created layout through code so that i can add multiple views on that layout using code below.</p>
  
  <pre><code>public class AndroidPrepChart extends Activity {
  
      GraphicalView gView;
      GraphicalView gView2;
      GraphicalView gView3;
  
      BarChart barChart = new BarChart();
      BarChart2 barChart2 = new BarChart2();
      BarChart3 barChart3 = new BarChart3();
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          gView = barChart.execute2(this);
          gView2 = barChart2.execute2(this);
          gView3 = barChart3.execute2(this);
  
          LinearLayout layout = new LinearLayout(this);
  
          layout.addView(gView, 150, 200);
          layout.addView(gView2, 150, 200);
          layout.addView(gView3, 150, 150);
  
          setContentView(layout);
  
       }
  }
  </code></pre>
  
  <p>Here output screen contains three charts but i want to position third chart in the second line. Please help me to solve this problem. I am beginner in Android.</p>