I have a view made up of TableLayout, TableRow and TextView. I want it to look like a grid. I need to get the height and width of this grid. The methods
TableLayout, TableRow and TextView
Use getMeasuredWidth() and getMeasuredHeight() for your view.
Developer guide: View