Is it possible to set variable number of textedits in alertdialog? I've tried to fill some container views such as StackView or LinearLayout dynamically but method addView is said to be not supported in AdapterView(exception). What's the solution?
Added:
I want to build alertdialog from the dynamic information.
AlertDialog.Builder alert = new AlertDialog.Builder(context);
now I can set its view like this:
alert.setView(v);
but v element can only be something simple as TextView or EditText. What if I want to create some container view which may contain variable number of elements, for example 2 textviews and 3 edittexts? How can I do this? Now I just create separate layout file and inflate view with it bit it's not a solution. What can I do?