I\'m trying to add multiple layouts dynamically under each other. So I wrote the following code:
for (int i = 1; i <= layoutCounter; i++) { Vie
You can try like this
RelativeLayout.LayoutParams rl = new RelativeLayout.LayoutParams(...) rl.addRule(RelativeLayout.BELOW, anotherview.getId()) rl.addRule(RelativeLayout.ALIGN_PARENT_LEFT) parentLayout.addView(myView, rl)