title: Align View dynamically View?
body: <p>I want to do something like XML attr when dynamically adding a view:</p>
  
  <pre><code>android:layout_alignRight="@+id/myView1"&gt;
  </code></pre>
  
  <p>my activity code:</p>
  
  <pre><code>button1.setOnClickListener(new View.OnClickListener(){
              @Override public void onClick(View v) {
              RelativeLayout ll = (RelativeLayout)findViewById(R.id.aincrad);
  
              TextView view = new TextView(Activity.this); 
              RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams
                           (RelativeLayout.LayoutParams.WRAP_CONTENT,RelativeLayout.LayoutParams.WRAP_CONTENT);
  
              layoutParams.addRule(RelativeLayout.ALIGN_RIGHT,R.id.Btn1Holder);  
  
              view.setText("testing...");
  
              view.setLayoutParams(layoutParams);
              ll.addView(view, layoutParams);
  }});
  </code></pre>
  
  <p>the result should aligned the new textview stay right of Btn1Holder</p>