I am using the following code to set the parameters of a layout programatically
LinearLayout text;
text = (LinearLayout) findViewById(R.id.text);
RelativeLayout.LayoutParams layoutParams =
(RelativeLayout.LayoutParams)text.getLayoutParams();
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
I am guessing that this sets the alignParentRight vale to true. Is it possible for me to programmatically set this value to false as well if I need to?
As suggested by Luksprog,
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, 0);sets the value to false.