title: How to set layout_alignParentRight="false" programmatically?
body: <p>How to set <code>android:layout_alignParentRight="false"</code> programmatically? I can set it to <code>true</code> by this code but I want to set it to <code>false</code> programmatically:</p>
  
  <pre><code>RelativeLayout.Layoutparams params =
  (RelativeLayout.LayoutParams)myView.getLayoutParams();
  params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
  button.setLayoutParams(params);
  </code></pre>
  
  <p>There is a method <a href="http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html#removeRule%28int%29" rel="noreferrer">removeRule(int)</a> but it's added in (API level 17). I want to use something like this in API level 7 or 8.</p>