How can I abolish addRule-Rules?
<p>I created a field of buttons in my XML file:</p>

<pre><code>&lt;RelativeLayout...&gt;
&lt;Button  
    android:id="@+id/button_1"
    ...
    /&gt;
&lt;Button  
    android:id="@+id/button_2"
    android:layout_toRightOf="@+id/button_1"  
...
/&gt;
...
&lt;/RelativeLayout&gt;enter code here
</code></pre>

<p>Now I want to abolish the XML rule "toRightOf" programmaticaly.
I know how to set rules:</p>

<pre><code>RelativeLayout.LayoutParams params = null;
params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
params.addRule(RelativeLayout.RIGHT_OF, topIcon.getId());
button_2.setLayoutParams(params);
</code></pre>

<p>But I want to DELETE rules I had set in XML file.
How can this be done?</p>

<p>The background of my question: I used an XML file to easily
create field of buttons.
But later I want to drag and drop buttons.
For that I have to delete rules like "toRightOf".
Otherwise instead of one button a lot of buttons
move if I only want to move one button.</p>
