I have read probably all posts and documentation but I still can\'t solve this issue.
I want to use addView()
method to add view to the existing (running) l
I had the same problem and wasted several time finding the reason.
My fault was that I was adding a CustomView that had match_parent set as height.
I hope to save some precious time to anybody who did this silly annoying mistake :)
TextView tv = new TextView(this);
lytMarks.addView(tv);
CustomView cv = new CustomView(this, someObject);
lytMarks.addView(cv); // <-- This one had height = match_parent!!
EditText et = new EditText(this);
lytMarks.addView(et);