How to dynamically add edittext to android
问题 I want to add edittext dynamically to the android display. I want to make something like in the android contacts where you can dynamically add fields and remove them if you dont need them. Thank you for your help 回答1: See Everything dynamically TextView tv=new TextView(this); tv.setText("TaskID"); TextView tv1=new TextView(this); task=new EditText(this); task.setMaxWidth(100); task.setMinHeight(100); tv1.setText("Task"); id=new EditText(this); id.setMaxHeight(10); TextView tv2=new TextView