I have this activity with linear layout(called myLayout) and in it there are two buttons. Then, I dynamically made array of textViews and added them below each other in a new relative layout(called relLayout). Now I want to put this relLayout below these two buttons in myLayout. But I don’t know how, maybe with myLayout.addView(relLayout, fparams); but then I don’t know how to define fparams..
Any ideas?
– First Let be a
LinearLayoutas theMain Parent layoutsuppose named as L1, withVertical orientation.– Then create a second
LinearLayoutnames as L2 as thechild to the parentlayout L1, withVertical orientation– Place the 2
buttonin this childLinearLayout L2.– Set this
LinearLayoutL2 attribute namedLayout_weight as 1.– Now place the
RelativeLayoutbelow this LinearLayout L2, and then dynamically generate thetextViewhere….