I am trying to fetch data from json array and display in edittext but i want to represent each element in seperate edittest,when the json array contains more than one element all the elements are single eddittext,how can i dynamicallly add edittext based on number of elements in the array
final String[] mList = assetName.split("\\|");
final String[] mListnumber = assetNumber.split("\\|");
for(i=0;i<mList.length;i++){
LayoutInflater inflater=(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View child=inflater.inflate(R.layout.childlayout,null);
EditText title1=(EditText)child.findViewById(R.id.et_armoryname);
EditText title2=(EditText)child.findViewById(R.id.et_armorynumber);
//EditText title3 = (EditText)child.findViewById(R.id.et_qr);
title1.setText(mList[i]);
title2.setText(mListnumber[i]);
}