I want to create editText everytime I clicked the button (create). and Set the id, column and row.
Gridlayout id: inputTasksLayout
button id: addnewTask
When i clicked the button, it will create an editText in column 1, row 1 and assigned an id (task1).
When i clicked the button again, it will create another editText in column 1, row 2 and assigned an id (task2).
When i clicked the button again, it will create another editText in column 1, row 2 and assigned an id (task3). And so on..
I want to know if its possible. If yes, can you give some sample codes? I tried the other sources but they are all in LinearLayout. I want to put it in GridLayout.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…