Is it possible when creating a RelativeLayout at runtime to set the equivalent of android:layout_below programmatically?
android:layout_below
While @jackofallcode answer is correct, it can be written in one line:
((RelativeLayout.LayoutParams) viewToLayout.getLayoutParams()).addRule(RelativeLayout.BELOW, R.id.below_id);