4041424344454647484950
if (!validated) { validated = true; totalHeight = 0; int count = getChildCount(); for (int i=0; i < count; i++) { View view = getChild(i); totalHeight = Math.max(view.getY() + view.getHeight(), totalHeight); } refresh(); } }