I have a linear layout which consists of imageview and textview , one below another in a linear layout.
If you are adding the View programmatically, you can use yourLayout.addView(view, 1);
yourLayout.addView(view, 1);
where 1 is the index.
1 is the index