I have a view made up of tablelayout, tablerows and textviews. I want it to look like a grid. I need to get the height and width of this grid. The methods getheight() and getwidth() always return 0. This happens when I format the grid dynamically and also when I use an xml version. I have a view made up of tablelayout, tablerows