I want to add UI component in my application dynamically which is received by API. I also want to fetch value of that component on submit. e.g. If there are 3 check box,2 Edittext and 2 radio button, I need to fetch every component's value while click on submit.
Android's UI widgets, like EditText
and RadioGroup
, are Java classes. You are welcome to create instances of these using their constructors. You are welcome to configure them using setters. You are welcome to add them to parent containers by calling addView()
on the container. And so on.