title: How to add views dynamically to a RelativeLayout already declared in the xml layout?
body: <p>I declared a <code>RelativeLayout</code> in a xml layout file. Now I want to add <code>Views</code> from code to the existing Layout. I added a <code>Button</code> dynamically to this existing layout as below through code:</p>
  
  <pre><code>rLayout = (RelativeLayout)findViewById(R.id.rlayout); 
          LayoutParams lprams = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
          Button tv1 = new Button(this); 
          tv1.setText("Hello"); 
          tv1.setLayoutParams(lprams); 
          tv1.setId(1); 
          rLayout.addView(tv1); 
  </code></pre>
  
  <p>Now I need to add another <code>Button</code> to the right of the already added <code>Button</code>.  I am not able to find the way in which I can add the new one to the  right of the previously added button.</p>