The question you are asking will be closed soon because of off-topic but I will give you little tips about adding the TextView
OR EditText
, If you want to add TextView
in number
of times then do like this
LayoutParams lparams = new LayoutParams(
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
for(int i=0; i<number; i++)
TextView tv=new TextView(this);
tv.setLayoutParams(lparams);
tv.setText("TextView "+i);
this.myLayout.addView(tv); //Where mLayout is your Parent Layout
}
solved How to create text boxes dynamically in eclipse android