I am creating an android app consists of a custom alert dialog.In that dialog i want to create a table layout dynamically with 4 rows and 5 columns. I want to made this with in
The lines
table_row.addView(t_v_dialog); } table_dialog.addView(table_row);
should be
tablerow_dialog.addView(t_v_dialog); } table_dialog.addView(tablerow_dialog);
Don't forget to add table_dialog to your layout container.
table_dialog