I\'m trying to build a table in android dynamically. But when I attempt to inflate a view, for instance, table_cell.xml, and add it to my table row, nothing appears:
<
You should try with getActivity().getLayoutInflater() .inflate(R.layout.table_cell, tableRow, true);
getActivity().getLayoutInflater() .inflate(R.layout.table_cell, tableRow, true);
And you should not add the tableCell view on the tableRow manually in this case as the inflator method takes care of that since we pass true ..
tableCell
tableRow