override fun onProgressUpdate()

in ConstraintLayoutPerformance/app/src/main/java/com/example/android/perf/MainActivity.kt [110:119]


        override fun onProgressUpdate(vararg values: Int?) {
            val startButton = startButtonRef.get() ?: return
            startButton.text = String.format(executingNthIteration, values[0], TOTAL)
            val container = containerRef.get() ?: return
            // Not to use the view cache in the View class, use the different measureSpecs
            // for each calculation. (Switching the
            // View.MeasureSpec.EXACT and View.MeasureSpec.AT_MOST alternately)
            measureAndLayoutExactLength(container)
            measureAndLayoutWrapLength(container)
        }