I have a TableLayout in which I add the Table Column titles in my Layout XML file, and add other rows dynamically through the code(based on a condition). So there are cases when no rows are added to the table. I need to check if no rows exist for the table. How should I go about it?
Through this code you can get the total rowCount
for TableLayout
TableLayoutName.getChildCount();
This method return the total number of rows in integer value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With