LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 210,Gravity.CENTER_VERTICAL); visualizerLayout.setLayoutParams(params); visualizerLayout.addView(eq);
It is drawn to the very bottom of the page, but it turns out under the elements below which the layout is drawn.
210 is the value that I have to look at if I understand correctly (calculated from the size of the elements enclosed in the view).
Gravity.CENTER_VERTICAL
if I understand correctly, should just adjust the elements inside the layout so that they tend to occupy a central position.
How to make eq view drawn in the middle of the page?