android - Add CustomViews to a LayoutView dynamically -


i have layoutview in scrollview named mylayout , want add view composed layoutview textview , editext inside scrollview according value, example method

addmycustomviewtomylayout(int x){ .... } 

that adds desired number of elements mylayout in scrollview,

the customviews added scrollview should linked activity , set value from-to app.

is possible? how do?

there's nothing special scrollviews. can think of them boundless view. while normal layouts linearlayout bound area, scrollview allow child whatever height wants (or width in case of horizontalscrollview).

scrollviews contain 1 child. child size bound width of scrollview, not bound height. thus, child measure based on idea has enough vertical space show everything.

in case, create or inflate mylayout want. add scrollview. if want add other views it, add mylayout layout view. let scrollview thing.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -