title: How to programmatically set RelativeLayout.ALIGN_RIGHT to FALSE?
body: <p>How can I change pragmatically layout property, <code>android:layout_alignParentRight="true"</code> to <code>android:layout_alignParentRight="false"</code>. I know how to make that <code>true</code> from the code, using this:</p>
  
  <pre><code>LayoutParams params = (RelativeLayout.LayoutParams)btn.getLayoutParams();
  params.addRule(RelativeLayout.ALIGN_RIGHT, RelativeLayout.TRUE);
  btn.setLayoutParams(params);
  </code></pre>
  
  <p>How can I make this <code>false</code> on some condition from java code?</p>