I m very new to Android.
I want to create a dynamic OnClick button functionality.

OnClick of “+” above , it should create a other layer , like this below.

My confusion , my entire design UI is in layout.xml.
How we can we include another layer in our UI on OnClick of “+” button.
Any input would be helpful.
Thanks !!!
In your XML have one
Vertical Linear Layoutto add and removeEditTextsat runtime, Here I have shown you code I have used in my demos. To handle and maintain the usage.Onclick of your Add and Minus button click
Functions to create and remove view
Your vertical LinearLayout to contain all the edittext childs
Arrays of edittext to be created of removed at runtime
Onclick of submit to get value from each textbox