There is a TableLayout which contains several TableRow that are created programmatically.

TableRow contains several TextView with text.

By clicking on a specific TableRow you need to parse all the data from all the TextView inside this TableRow .

The onClick method onClick already hanging on every TableRow , and each has a unique ID .

    1 answer 1

     //... tr.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { TableRow t = (TableRow) view; TextView firstTextView = (TextView) t.getChildAt(0); TextView secondTextView = (TextView) t.getChildAt(1); String firstText = firstTextView.getText().toString(); String secondText = secondTextView.getText().toString(); } }); //... 
    • Thanks, it helped) - SerGon146