This was my code for creating table and appending the data dynamically
table = (TableLayout)findViewById(R.id.table); inflater = getLayoutInflater(); for(int i = 0; i < 5; i++) { row = (TableRow)inflater.inflate(R.layout.row,table, false); TextView text = (TextView)row.findViewById(R.id.text1); text.setText("sss:" + i); text1 = (EditText)row.findViewById(R.id.text2); `enter code here` text2 = (TextView)row.findViewById(R.id.text3); text2.setText(""); text1.addTextChangedListener(new MyWatcher(text2)); table.addView(row); }this code is working fine but my problem is when i click the button i want to get the values from each row which is to be only filledenter code here
NxtBtn.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { } });please help me out in this.
ليست هناك تعليقات:
إرسال تعليق