Calculate activity layout finished