How to create Edittext programmatically inside of DialogBox depends on Array size?
问题 I have created Dialog Box with 4 EditText. But now I need to do this by dynamically depends on API response JsonObject count. Here is my response: { "additional_charges":{ "1":"121324324", "2":"245657687", "3":"379809733", "4":"4467797894" } } If "additional_charges", has "1","2","3" ---> I have to show 3 Edittext. If "additional_charges", has "1","2","3","4" ---> I have to show 4 Edittext in Dialog box. How to do this? dialog.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk