Updated return type of measurements to ViewGroup