title: RTL support in addRule() method in Android
body: <p>I need to support both English and Arabic language in my app. In one of my screens, I need to add rule for a widget programmatically. That is I need to align a view to the  right of another view. For that, I have written the below code:</p>
  
  <pre><code> RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
                          RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT);
                  params.addRule(RelativeLayout.RIGHT_OF, btnView.getId());
                   txtView.setLayoutParams(params);
  </code></pre>
  
  <p>It works fine in English language, but doesnot work in Arabic language, how to fix it?</p>